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

Issue 1109563003: Implement remaining chrome.searchEnginesPrivate methods. (Closed)

Created:
5 years, 8 months ago by Oren Blasberg
Modified:
5 years, 7 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, asvitkine+watch_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement remaining chrome.searchEnginesPrivate methods. There may be more nuances to the implementation we'll have to fix later, as it's hard to know until I try it with the UI in place. There is also a chance we'll have to make further IDL changes.. But hopefully this is the last major interface change for searchEnginesPrivate. (Disabling presubmit because it requires a manual confirmation that the histograms changes were OK since I renamed a method. I confirmed this.) BUG=480043 NOPRESUBMIT=true Committed: https://crrev.com/229960af7ade46b15e668c4299cb318a52161787 Cr-Commit-Position: refs/heads/master@{#327636}

Patch Set 1 #

Patch Set 2 : A few more methods #

Patch Set 3 : Add more tests #

Patch Set 4 : Add another hotword method #

Patch Set 5 : Adding another event #

Patch Set 6 : Cleanups #

Patch Set 7 : Fix the event router bug so my test passes now #

Total comments: 25

Patch Set 8 : Fix and re enable tests #

Patch Set 9 : Partially address comments #

Patch Set 10 : Address comments #

Total comments: 15

Patch Set 11 : Remove DisableHotwordPreferences call #

Total comments: 2

Patch Set 12 : Address Steven's comments. #

Total comments: 4

Patch Set 13 : Address last comment sync fix trybot failure #

Unified diffs Side-by-side diffs Delta from patch set Stats (+664 lines, -69 lines) Patch
M chrome/browser/extensions/api/search_engines_private/search_engines_private_api.h View 1 2 3 4 5 6 7 8 9 3 chunks +118 lines, -7 lines 0 comments Download
M chrome/browser/extensions/api/search_engines_private/search_engines_private_api.cc View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +269 lines, -10 lines 0 comments Download
M chrome/browser/extensions/api/search_engines_private/search_engines_private_apitest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +14 lines, -4 lines 0 comments Download
M chrome/browser/extensions/api/search_engines_private/search_engines_private_event_router.h View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/search_engines_private/search_engines_private_event_router.cc View 1 2 3 4 5 6 7 8 9 5 chunks +18 lines, -12 lines 0 comments Download
M chrome/browser/resources/settings/search_page/search_page.js View 1 2 3 4 5 6 7 8 9 2 chunks +16 lines, -9 lines 0 comments Download
M chrome/common/extensions/api/search_engines_private.idl View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +58 lines, -5 lines 0 comments Download
M chrome/test/data/extensions/api_test/search_engines_private/test.js View 1 2 3 4 5 6 7 8 9 1 chunk +75 lines, -10 lines 0 comments Download
M extensions/browser/extension_function_histogram_value.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +6 lines, -1 line 0 comments Download
M third_party/closure_compiler/externs/search_engines_private.js View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +84 lines, -8 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 2 chunks +6 lines, -1 line 0 comments Download

Messages

Total messages: 26 (5 generated)
Oren Blasberg
5 years, 7 months ago (2015-04-28 00:27:43 UTC) #2
Oren Blasberg
This CL is mostly done, minus a bit of testing related stuff, so thought I'd ...
5 years, 7 months ago (2015-04-28 00:28:24 UTC) #3
Oren Blasberg
+Mark for histogram changes; Thanks in advance!
5 years, 7 months ago (2015-04-28 01:58:02 UTC) #5
Oren Blasberg
+Ben for idl changes; +Tyler for externs changes (auto generated). Thanks!
5 years, 7 months ago (2015-04-28 01:59:11 UTC) #7
Tyler Breisacher (Chromium)
If it's really auto-generated then I would think it's fine to TBR it. Maybe add ...
5 years, 7 months ago (2015-04-28 16:41:29 UTC) #8
not at google - send to devlin
lgtm but consider my comment https://codereview.chromium.org/1109563003/diff/120001/chrome/common/extensions/api/search_engines_private.idl File chrome/common/extensions/api/search_engines_private.idl (right): https://codereview.chromium.org/1109563003/diff/120001/chrome/common/extensions/api/search_engines_private.idl#newcode65 chrome/common/extensions/api/search_engines_private.idl:65: DOMString guid, DOMString name, ...
5 years, 7 months ago (2015-04-28 16:48:47 UTC) #9
stevenjb
https://codereview.chromium.org/1109563003/diff/120001/chrome/browser/extensions/api/search_engines_private/search_engines_private_api.cc File chrome/browser/extensions/api/search_engines_private/search_engines_private_api.cc (right): https://codereview.chromium.org/1109563003/diff/120001/chrome/browser/extensions/api/search_engines_private/search_engines_private_api.cc#newcode52 chrome/browser/extensions/api/search_engines_private/search_engines_private_api.cc:52: continue; If the data model differentiates between "default" and ...
5 years, 7 months ago (2015-04-28 17:16:39 UTC) #10
Oren Blasberg
I had a couple follow ups so wanted to hit reply though I'm not done ...
5 years, 7 months ago (2015-04-28 18:44:01 UTC) #11
Oren Blasberg
https://codereview.chromium.org/1109563003/diff/120001/chrome/browser/extensions/api/search_engines_private/search_engines_private_api.cc File chrome/browser/extensions/api/search_engines_private/search_engines_private_api.cc (right): https://codereview.chromium.org/1109563003/diff/120001/chrome/browser/extensions/api/search_engines_private/search_engines_private_api.cc#newcode251 chrome/browser/extensions/api/search_engines_private/search_engines_private_api.cc:251: hotword_service->DisableHotwordPreferences(); On 2015/04/28 17:16:38, stevenjb wrote: > This seems ...
5 years, 7 months ago (2015-04-28 18:54:26 UTC) #12
stevenjb
https://codereview.chromium.org/1109563003/diff/120001/chrome/browser/extensions/api/search_engines_private/search_engines_private_api.cc File chrome/browser/extensions/api/search_engines_private/search_engines_private_api.cc (right): https://codereview.chromium.org/1109563003/diff/120001/chrome/browser/extensions/api/search_engines_private/search_engines_private_api.cc#newcode354 chrome/browser/extensions/api/search_engines_private/search_engines_private_api.cc:354: DCHECK(profile->GetPrefs()->GetBoolean(prefs::kHotwordAudioLoggingEnabled)); On 2015/04/28 18:44:00, Oren Blasberg wrote: > On ...
5 years, 7 months ago (2015-04-28 19:06:03 UTC) #13
Oren Blasberg
PTAL https://codereview.chromium.org/1109563003/diff/120001/chrome/browser/extensions/api/search_engines_private/search_engines_private_api.cc File chrome/browser/extensions/api/search_engines_private/search_engines_private_api.cc (right): https://codereview.chromium.org/1109563003/diff/120001/chrome/browser/extensions/api/search_engines_private/search_engines_private_api.cc#newcode52 chrome/browser/extensions/api/search_engines_private/search_engines_private_api.cc:52: continue; On 2015/04/28 17:16:38, stevenjb wrote: > If ...
5 years, 7 months ago (2015-04-28 21:58:30 UTC) #14
stevenjb
Looking good. Mostly nits. https://codereview.chromium.org/1109563003/diff/180001/chrome/browser/extensions/api/search_engines_private/search_engines_private_api.cc File chrome/browser/extensions/api/search_engines_private/search_engines_private_api.cc (right): https://codereview.chromium.org/1109563003/diff/180001/chrome/browser/extensions/api/search_engines_private/search_engines_private_api.cc#newcode246 chrome/browser/extensions/api/search_engines_private/search_engines_private_api.cc:246: base::ASCIIToUTF16(chrome::kHotwordLearnMoreURL); Since this is only ...
5 years, 7 months ago (2015-04-28 22:27:12 UTC) #15
Oren Blasberg
https://codereview.chromium.org/1109563003/diff/180001/chrome/browser/extensions/api/search_engines_private/search_engines_private_api.cc File chrome/browser/extensions/api/search_engines_private/search_engines_private_api.cc (right): https://codereview.chromium.org/1109563003/diff/180001/chrome/browser/extensions/api/search_engines_private/search_engines_private_api.cc#newcode246 chrome/browser/extensions/api/search_engines_private/search_engines_private_api.cc:246: base::ASCIIToUTF16(chrome::kHotwordLearnMoreURL); On 2015/04/28 22:27:11, stevenjb wrote: > Since this ...
5 years, 7 months ago (2015-04-29 00:24:59 UTC) #16
stevenjb
LGTM w/ one small fix. https://codereview.chromium.org/1109563003/diff/220001/chrome/browser/extensions/api/search_engines_private/search_engines_private_api.cc File chrome/browser/extensions/api/search_engines_private/search_engines_private_api.cc (right): https://codereview.chromium.org/1109563003/diff/220001/chrome/browser/extensions/api/search_engines_private/search_engines_private_api.cc#newcode256 chrome/browser/extensions/api/search_engines_private/search_engines_private_api.cc:256: base::ASCIIToUTF16(user_display_name)); elim
5 years, 7 months ago (2015-04-29 01:05:26 UTC) #17
Mark P
https://codereview.chromium.org/1109563003/diff/220001/extensions/browser/extension_function_histogram_value.h File extensions/browser/extension_function_histogram_value.h (right): https://codereview.chromium.org/1109563003/diff/220001/extensions/browser/extension_function_histogram_value.h#newcode1072 extensions/browser/extension_function_histogram_value.h:1072: SEARCHENGINESPRIVATE_GETSEARCHENGINES, Does this function do something different than it ...
5 years, 7 months ago (2015-04-29 18:00:19 UTC) #18
stevenjb
https://codereview.chromium.org/1109563003/diff/220001/extensions/browser/extension_function_histogram_value.h File extensions/browser/extension_function_histogram_value.h (right): https://codereview.chromium.org/1109563003/diff/220001/extensions/browser/extension_function_histogram_value.h#newcode1072 extensions/browser/extension_function_histogram_value.h:1072: SEARCHENGINESPRIVATE_GETSEARCHENGINES, On 2015/04/29 18:00:19, Mark P wrote: > Does ...
5 years, 7 months ago (2015-04-29 18:16:08 UTC) #19
Mark P
histograms.xml lgtm
5 years, 7 months ago (2015-04-29 18:16:56 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1109563003/240001
5 years, 7 months ago (2015-04-30 00:27:42 UTC) #23
Oren Blasberg
https://codereview.chromium.org/1109563003/diff/220001/chrome/browser/extensions/api/search_engines_private/search_engines_private_api.cc File chrome/browser/extensions/api/search_engines_private/search_engines_private_api.cc (right): https://codereview.chromium.org/1109563003/diff/220001/chrome/browser/extensions/api/search_engines_private/search_engines_private_api.cc#newcode256 chrome/browser/extensions/api/search_engines_private/search_engines_private_api.cc:256: base::ASCIIToUTF16(user_display_name)); On 2015/04/29 01:05:26, stevenjb wrote: > elim Done.
5 years, 7 months ago (2015-04-30 00:43:52 UTC) #24
commit-bot: I haz the power
Committed patchset #13 (id:240001)
5 years, 7 months ago (2015-04-30 01:28:53 UTC) #25
commit-bot: I haz the power
5 years, 7 months ago (2015-04-30 01:29:56 UTC) #26
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/229960af7ade46b15e668c4299cb318a52161787
Cr-Commit-Position: refs/heads/master@{#327636}

Powered by Google App Engine
This is Rietveld 408576698