angler-fishThe Vulnerability History Project

Partially componentize //chrome/browser/search/search.{h,cc}

      Move functions from //chrome/browser/search/search.{h,cc} to the search
component //components/search/search.{h,cc} so that they can be shared
with iOS.

Move all the code in those two files (and supporting unittests) from
the &quotchrome&quot to the &quotsearch&quot namespace.

Move unittests that do not depends on non-componentized functions into
the search component.

Implements GetSearchTerms() on iOS that uses a web::WebState* instead
of content::WebContents and simplify the code to remove unsupported
features.

Directly use //components/search on iOS instead of the SearchProvider
when possible.

BUG=514239
TBR=sky,droger,benwells

Review URL: https://codereview.chromium.org/1260033003

Cr-Commit-Position: refs/heads/master@{#341525}
    
commit 51bbec7be7014d4d75d39c1a5c27b1ba9ddc3dcd
+2 -2
+2 -2
+8 -8
+1 -1
+1 -1
+1 -1
+1 -2
+1 -2
+1 -1
+4 -5
+3 -4
+1 -2
+1 -1
+116 -10
+43 -2
+110
+150 -23
+8 -8
+1 -1
+1 -1
+3 -2
+1 -1
+3 -3
+5 -5
+1 -1
+4 -4
+10 -8
+1 -1
+6 -6
+2 -2
+3 -4
+1 -2
+2 -3
+9 -10
+1 -1
+4 -4
+5 -6
+12 -12
+1 -1
+4 -4
+16 -16
+1 -1
+1 -2
+1 -1
+2 -2
+1 -1
+8 -9
+1 -2
+1 -1
+2 -2
+1
+7
+2
+1 -1
+1 -1
+1 -1
+1 -1
+1 -4
-3
-2
+2 -112
+2 -55
+1 -86
-11
-5
+2 -108
+1 -1
-69
-42
+16 -8
-2
+2
+1
+4
+3
+50
+31
+29
+3
+7 -1
expand_less