Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Issue 12319124: Enable query extraction for Android (Closed)

Created:
7 years, 10 months ago by Yusuf
Modified:
7 years, 9 months ago
CC:
chromium-reviews, Ramya, nilesh
Visibility:
Public.

Description

Enable query extraction for Android This adds the related switch to Android command line and also implements InstantExtendedEnabledParam() for iOS and Android in a such a way to add the necessary Replacement param if query extraction is enabled and the base url is secure. BUG=177333 TBR=bartfab@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=186788

Patch Set 1 #

Total comments: 7

Patch Set 2 : Changed embeddedPageVersion for mobile and cleaned up the rest #

Total comments: 3

Patch Set 3 : Added ifdefs back and made IsExtendedInstantEnabled clearer #

Total comments: 2

Patch Set 4 : Fixed ifdef comments #

Total comments: 10

Patch Set 5 : Changes IsEnabled calls and rebased #

Patch Set 6 : Removed kEnableQueryExtraction #

Total comments: 5

Patch Set 7 : Nit fixes #

Patch Set 8 : Rebased #

Patch Set 9 : Rebased #

Patch Set 10 : Fixed rebasing errors #

Patch Set 11 : Fixed build errors #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -30 lines) Patch
M chrome/browser/android/chrome_startup_flags.cc View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/policy/policy_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/search/search.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/ui/search/search.cc View 1 2 3 4 5 6 7 8 9 4 chunks +12 lines, -19 lines 0 comments Download
M chrome/browser/ui/toolbar/toolbar_model_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -1 line 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -4 lines 0 comments Download

Messages

Total messages: 48 (0 generated)
Yusuf
PTAL. Let me know if there is anyone else I should add to review.
7 years, 10 months ago (2013-02-26 23:37:43 UTC) #1
dhollowa
On 2013/02/26 23:37:43, Yusuf wrote: > PTAL. Let me know if there is anyone else ...
7 years, 10 months ago (2013-02-27 00:45:54 UTC) #2
dhollowa
On 2013/02/27 00:45:54, dhollowa wrote: > On 2013/02/26 23:37:43, Yusuf wrote: > > PTAL. Let ...
7 years, 10 months ago (2013-02-27 00:46:37 UTC) #3
sreeram
lgtm
7 years, 9 months ago (2013-02-27 20:30:23 UTC) #4
dhollowa
lgtm
7 years, 9 months ago (2013-02-27 23:50:06 UTC) #5
rohitrao (ping after 24h)
lgtm
7 years, 9 months ago (2013-02-28 01:06:01 UTC) #6
Yusuf
pkasting@ for chrome/browser/ui|search_engines|google tedchoc@ for chrome/browser/android OWNERS approval
7 years, 9 months ago (2013-02-28 01:11:36 UTC) #7
Ted C
lgtm for androidy-bits
7 years, 9 months ago (2013-02-28 01:58:27 UTC) #8
Yusuf
pkasting@, ping for taking a look at this. Thanks!
7 years, 9 months ago (2013-03-01 06:13:55 UTC) #9
Peter Kasting
https://codereview.chromium.org/12319124/diff/1/chrome/browser/search_engines/search_terms_data.cc File chrome/browser/search_engines/search_terms_data.cc (right): https://codereview.chromium.org/12319124/diff/1/chrome/browser/search_engines/search_terms_data.cc#newcode144 chrome/browser/search_engines/search_terms_data.cc:144: #if defined(OS_IOS) || defined(OS_ANDROID) You're omitting the threading assertion ...
7 years, 9 months ago (2013-03-01 21:44:44 UTC) #10
Yusuf
https://codereview.chromium.org/12319124/diff/1/chrome/browser/search_engines/search_terms_data.cc File chrome/browser/search_engines/search_terms_data.cc (right): https://codereview.chromium.org/12319124/diff/1/chrome/browser/search_engines/search_terms_data.cc#newcode144 chrome/browser/search_engines/search_terms_data.cc:144: #if defined(OS_IOS) || defined(OS_ANDROID) On 2013/03/01 21:44:44, Peter Kasting ...
7 years, 9 months ago (2013-03-01 22:26:07 UTC) #11
sreeram
Also please sync (to get asvitkine's changes to search.cc). https://codereview.chromium.org/12319124/diff/10001/chrome/browser/ui/search/search.cc File chrome/browser/ui/search/search.cc (right): https://codereview.chromium.org/12319124/diff/10001/chrome/browser/ui/search/search.cc#newcode154 chrome/browser/ui/search/search.cc:154: ...
7 years, 9 months ago (2013-03-01 22:36:44 UTC) #12
rohitrao (ping after 24h)
https://codereview.chromium.org/12319124/diff/1/chrome/browser/search_engines/search_terms_data.cc File chrome/browser/search_engines/search_terms_data.cc (right): https://codereview.chromium.org/12319124/diff/1/chrome/browser/search_engines/search_terms_data.cc#newcode146 chrome/browser/search_engines/search_terms_data.cc:146: GURL(GoogleBaseURLValue()).SchemeIsSecure()) We have to be a little careful here, ...
7 years, 9 months ago (2013-03-01 22:38:25 UTC) #13
Peter Kasting
On 2013/03/01 22:38:25, rohitrao wrote: > https://codereview.chromium.org/12319124/diff/1/chrome/browser/search_engines/search_terms_data.cc > File chrome/browser/search_engines/search_terms_data.cc (right): > > https://codereview.chromium.org/12319124/diff/1/chrome/browser/search_engines/search_terms_data.cc#newcode146 > ...
7 years, 9 months ago (2013-03-01 22:40:13 UTC) #14
Peter Kasting
https://codereview.chromium.org/12319124/diff/10001/chrome/browser/ui/search/search.cc File chrome/browser/ui/search/search.cc (right): https://codereview.chromium.org/12319124/diff/10001/chrome/browser/ui/search/search.cc#newcode154 chrome/browser/ui/search/search.cc:154: if (cl->HasSwitch(switches::kEnableQueryExtraction)); Do we need to use a distinct ...
7 years, 9 months ago (2013-03-01 22:42:49 UTC) #15
rohitrao (ping after 24h)
> This is a problem that the instant extended folk have to avoid as well ...
7 years, 9 months ago (2013-03-01 22:44:30 UTC) #16
sreeram
On 2013/03/01 22:44:30, rohitrao wrote: > > This is a problem that the instant extended ...
7 years, 9 months ago (2013-03-01 22:56:34 UTC) #17
Yusuf
Upload another version with a few more ifdefs than I would have preferred, but this ...
7 years, 9 months ago (2013-03-01 23:29:38 UTC) #18
rohitrao (ping after 24h)
I'm uncomfortable with adding espv=1 for http queries, because the resulting search results ui will ...
7 years, 9 months ago (2013-03-01 23:38:48 UTC) #19
Peter Kasting
On 2013/03/01 23:38:48, rohitrao wrote: > We could probably change the server to ignore espv ...
7 years, 9 months ago (2013-03-01 23:41:56 UTC) #20
rohitrao (ping after 24h)
Ok, I'll check with the GWS folks next week and work on getting the server ...
7 years, 9 months ago (2013-03-01 23:45:29 UTC) #21
sreeram
On 2013/03/01 23:38:48, rohitrao wrote: > I'm uncomfortable with adding espv=1 for http queries, because ...
7 years, 9 months ago (2013-03-01 23:47:39 UTC) #22
sreeram
https://codereview.chromium.org/12319124/diff/17001/chrome/browser/ui/search/search.cc File chrome/browser/ui/search/search.cc (right): https://codereview.chromium.org/12319124/diff/17001/chrome/browser/ui/search/search.cc#newcode150 chrome/browser/ui/search/search.cc:150: #endif // defined(OS_IOS) || defined(OS_ANDROID) Nit: I meant two ...
7 years, 9 months ago (2013-03-02 00:16:18 UTC) #23
Yusuf
So we agree that http concerns will be addressed on the server side and this ...
7 years, 9 months ago (2013-03-02 00:26:29 UTC) #24
sreeram
lgtm
7 years, 9 months ago (2013-03-02 00:31:54 UTC) #25
Yusuf
pkasting@ can you have a final look at this then?
7 years, 9 months ago (2013-03-04 21:12:59 UTC) #26
Peter Kasting
https://codereview.chromium.org/12319124/diff/8005/chrome/browser/ui/search/search.cc File chrome/browser/ui/search/search.cc (right): https://codereview.chromium.org/12319124/diff/8005/chrome/browser/ui/search/search.cc#newcode149 chrome/browser/ui/search/search.cc:149: return EmbeddedSearchPageVersion(profile) != 0; Nit: If you change this ...
7 years, 9 months ago (2013-03-04 23:01:18 UTC) #27
Yusuf
https://codereview.chromium.org/12319124/diff/8005/chrome/browser/ui/search/search.cc File chrome/browser/ui/search/search.cc (right): https://codereview.chromium.org/12319124/diff/8005/chrome/browser/ui/search/search.cc#newcode149 chrome/browser/ui/search/search.cc:149: return EmbeddedSearchPageVersion(profile) != 0; What I understood from Rohit's ...
7 years, 9 months ago (2013-03-04 23:09:37 UTC) #28
rohitrao (ping after 24h)
https://codereview.chromium.org/12319124/diff/8005/chrome/browser/ui/search/search.cc File chrome/browser/ui/search/search.cc (right): https://codereview.chromium.org/12319124/diff/8005/chrome/browser/ui/search/search.cc#newcode149 chrome/browser/ui/search/search.cc:149: return EmbeddedSearchPageVersion(profile) != 0; Peter was suggesting changing this ...
7 years, 9 months ago (2013-03-04 23:16:35 UTC) #29
Yusuf
https://codereview.chromium.org/12319124/diff/8005/chrome/browser/ui/search/search.cc File chrome/browser/ui/search/search.cc (right): https://codereview.chromium.org/12319124/diff/8005/chrome/browser/ui/search/search.cc#newcode149 chrome/browser/ui/search/search.cc:149: return EmbeddedSearchPageVersion(profile) != 0; Oh, OK. Got it now. ...
7 years, 9 months ago (2013-03-04 23:36:36 UTC) #30
Peter Kasting
https://codereview.chromium.org/12319124/diff/8005/chrome/browser/ui/search/search.cc File chrome/browser/ui/search/search.cc (right): https://codereview.chromium.org/12319124/diff/8005/chrome/browser/ui/search/search.cc#newcode158 chrome/browser/ui/search/search.cc:158: if (cl->HasSwitch(switches::kEnableQueryExtraction)) On 2013/03/04 23:16:35, rohitrao wrote: > I ...
7 years, 9 months ago (2013-03-05 00:19:45 UTC) #31
rohitrao (ping after 24h)
https://codereview.chromium.org/12319124/diff/8005/chrome/browser/ui/search/search.cc File chrome/browser/ui/search/search.cc (right): https://codereview.chromium.org/12319124/diff/8005/chrome/browser/ui/search/search.cc#newcode158 chrome/browser/ui/search/search.cc:158: if (cl->HasSwitch(switches::kEnableQueryExtraction)) On 2013/03/05 00:19:45, Peter Kasting wrote: > ...
7 years, 9 months ago (2013-03-05 00:29:41 UTC) #32
Peter Kasting
https://codereview.chromium.org/12319124/diff/8005/chrome/browser/ui/search/search.cc File chrome/browser/ui/search/search.cc (right): https://codereview.chromium.org/12319124/diff/8005/chrome/browser/ui/search/search.cc#newcode158 chrome/browser/ui/search/search.cc:158: if (cl->HasSwitch(switches::kEnableQueryExtraction)) On 2013/03/05 00:29:41, rohitrao wrote: > On ...
7 years, 9 months ago (2013-03-05 00:35:30 UTC) #33
Yusuf
https://codereview.chromium.org/12319124/diff/8005/chrome/browser/ui/search/search.cc File chrome/browser/ui/search/search.cc (right): https://codereview.chromium.org/12319124/diff/8005/chrome/browser/ui/search/search.cc#newcode158 chrome/browser/ui/search/search.cc:158: if (cl->HasSwitch(switches::kEnableQueryExtraction)) Uploaded a patch that removed kEnableQueryExtraction and ...
7 years, 9 months ago (2013-03-05 05:57:23 UTC) #34
Peter Kasting
Yeah, this is exactly what I was suggesting. Rohit, are you OK with this? Code-wise ...
7 years, 9 months ago (2013-03-05 06:19:56 UTC) #35
rohitrao (ping after 24h)
LGTM It feels weird to reuse the flag with a different meaning on mobile, but ...
7 years, 9 months ago (2013-03-05 15:31:31 UTC) #36
sreeram
https://codereview.chromium.org/12319124/diff/22001/chrome/browser/ui/search/search.cc File chrome/browser/ui/search/search.cc (right): https://codereview.chromium.org/12319124/diff/22001/chrome/browser/ui/search/search.cc#newcode163 chrome/browser/ui/search/search.cc:163: // On desktop, query extraction is part of instant ...
7 years, 9 months ago (2013-03-05 17:45:55 UTC) #37
sreeram
https://codereview.chromium.org/12319124/diff/22001/chrome/browser/ui/search/search.cc File chrome/browser/ui/search/search.cc (right): https://codereview.chromium.org/12319124/diff/22001/chrome/browser/ui/search/search.cc#newcode163 chrome/browser/ui/search/search.cc:163: // On desktop, query extraction is part of instant ...
7 years, 9 months ago (2013-03-05 17:46:24 UTC) #38
Yusuf
https://codereview.chromium.org/12319124/diff/22001/chrome/browser/ui/search/search.cc File chrome/browser/ui/search/search.cc (right): https://codereview.chromium.org/12319124/diff/22001/chrome/browser/ui/search/search.cc#newcode163 chrome/browser/ui/search/search.cc:163: // On desktop, query extraction is part of instant ...
7 years, 9 months ago (2013-03-05 18:57:31 UTC) #39
Peter Kasting
LGTM
7 years, 9 months ago (2013-03-06 21:56:08 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yusufo@chromium.org/12319124/36001
7 years, 9 months ago (2013-03-06 22:40:26 UTC) #41
commit-bot: I haz the power
Failed to apply patch for chrome/browser/ui/search/search.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 9 months ago (2013-03-06 22:40:27 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yusufo@chromium.org/12319124/49001
7 years, 9 months ago (2013-03-07 17:28:31 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yusufo@chromium.org/12319124/60002
7 years, 9 months ago (2013-03-07 17:37:33 UTC) #44
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 9 months ago (2013-03-07 18:02:46 UTC) #45
Yusuf
Adding bartfab@ to TBR for the chrome/browser/policy change.
7 years, 9 months ago (2013-03-07 18:31:08 UTC) #46
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yusufo@chromium.org/12319124/63001
7 years, 9 months ago (2013-03-07 18:32:36 UTC) #47
commit-bot: I haz the power
7 years, 9 months ago (2013-03-07 22:07:55 UTC) #48
Message was sent while issue was closed.
Change committed as 186788

Powered by Google App Engine
This is Rietveld 408576698