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

Issue 196753002: [Hotword] Making enabling/disabling the setting enable/disable the hotword extension. (Closed)

Created:
6 years, 9 months ago by rpetterson
Modified:
6 years, 9 months ago
Reviewers:
miket_OOO, Jered
CC:
chromium-reviews, extensions-reviews_chromium.org, skanuj+watch_chromium.org, melevin+watch_chromium.org, dhollowa+watch_chromium.org, dougw+watch_chromium.org, donnd+watch_chromium.org, dominich, jfweitz+watch_chromium.org, David Black, samarth+watch_chromium.org, chromium-apps-reviews_chromium.org, kmadhusu+watch_chromium.org, Jered, samarth
Visibility:
Public.

Description

[Hotword] Making enabling/disabling the setting enable/disable the hotword extension. This changes also allows external component extensions to be user modifiable. However, currently hotwording is the only such component which this affects since others are not typically accessible for changing. BUG=349573 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=258106

Patch Set 1 #

Total comments: 5

Patch Set 2 : update comment #

Total comments: 5

Patch Set 3 : refactor, update comment #

Patch Set 4 : remove unneeded includes #

Total comments: 4

Patch Set 5 : cleanup #

Patch Set 6 : fixing unittests #

Patch Set 7 : rebase because try bots are hanging #

Total comments: 2

Patch Set 8 : rebasing for keyed service change #

Patch Set 9 : undo profile resetter unittest change, but modify behavior when disabling extensions #

Total comments: 7

Patch Set 10 : fixing nits, adding comment about filed bug #

Patch Set 11 : adding check in ShouldEnableOnInstall #

Patch Set 12 : remove extra blank lines #

Patch Set 13 : adding debug lines since I can't repro locally, debug or release #

Patch Set 14 : compile error #

Patch Set 15 : remove is_app and test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+85 lines, -13 lines) Patch
M chrome/browser/extensions/component_loader_unittest.cc View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +11 lines, -3 lines 0 comments Download
M chrome/browser/search/hotword_service.h View 1 2 3 4 5 6 7 8 9 2 chunks +12 lines, -0 lines 0 comments Download
M chrome/browser/search/hotword_service.cc View 1 2 3 4 5 6 7 8 9 4 chunks +51 lines, -9 lines 0 comments Download
M chrome/browser/search/hotword_service_unittest.cc View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M extensions/browser/admin_policy.cc View 1 2 1 chunk +6 lines, -1 line 0 comments Download

Messages

Total messages: 38 (0 generated)
rpetterson
miket@chromium.org: Please review changes in browser/search samarth@chromium.org: Please review changes in extensions
6 years, 9 months ago (2014-03-12 05:55:28 UTC) #1
rpetterson
switching from samarth to jered since samarth is OOO.
6 years, 9 months ago (2014-03-12 20:34:15 UTC) #2
Jered
Quick question for search/ change https://codereview.chromium.org/196753002/diff/1/chrome/browser/search/hotword_service.cc File chrome/browser/search/hotword_service.cc (right): https://codereview.chromium.org/196753002/diff/1/chrome/browser/search/hotword_service.cc#newcode95 chrome/browser/search/hotword_service.cc:95: if (profile_->GetPrefs()->HasPrefPath(prefs::kHotwordSearchEnabled)) { Do ...
6 years, 9 months ago (2014-03-12 20:43:44 UTC) #3
rpetterson
https://codereview.chromium.org/196753002/diff/1/chrome/browser/search/hotword_service.cc File chrome/browser/search/hotword_service.cc (right): https://codereview.chromium.org/196753002/diff/1/chrome/browser/search/hotword_service.cc#newcode95 chrome/browser/search/hotword_service.cc:95: if (profile_->GetPrefs()->HasPrefPath(prefs::kHotwordSearchEnabled)) { On 2014/03/12 20:43:45, Jered wrote: > ...
6 years, 9 months ago (2014-03-12 20:51:25 UTC) #4
rpetterson
https://codereview.chromium.org/196753002/diff/1/chrome/browser/search/hotword_service.cc File chrome/browser/search/hotword_service.cc (right): https://codereview.chromium.org/196753002/diff/1/chrome/browser/search/hotword_service.cc#newcode95 chrome/browser/search/hotword_service.cc:95: if (profile_->GetPrefs()->HasPrefPath(prefs::kHotwordSearchEnabled)) { Let me clarify just a bit ...
6 years, 9 months ago (2014-03-12 20:52:28 UTC) #5
Jered
lgtm for search
6 years, 9 months ago (2014-03-12 20:53:44 UTC) #6
miket_OOO
LGTM with some nits including one easy refactoring opportunity. https://codereview.chromium.org/196753002/diff/20001/chrome/browser/search/hotword_service.cc File chrome/browser/search/hotword_service.cc (right): https://codereview.chromium.org/196753002/diff/20001/chrome/browser/search/hotword_service.cc#newcode189 chrome/browser/search/hotword_service.cc:189: ...
6 years, 9 months ago (2014-03-12 21:54:45 UTC) #7
rpetterson
Jered, there was some refactoring in hotword_service.cc, if you want to take another look. https://codereview.chromium.org/196753002/diff/20001/chrome/browser/search/hotword_service.cc ...
6 years, 9 months ago (2014-03-12 23:27:32 UTC) #8
Jered
slgtm https://codereview.chromium.org/196753002/diff/60001/chrome/browser/search/hotword_service.cc File chrome/browser/search/hotword_service.cc (right): https://codereview.chromium.org/196753002/diff/60001/chrome/browser/search/hotword_service.cc#newcode69 chrome/browser/search/hotword_service.cc:69: if (!extension_system || !extension_system->extension_service()) nit: simpler if written ...
6 years, 9 months ago (2014-03-12 23:30:48 UTC) #9
rpetterson
https://codereview.chromium.org/196753002/diff/60001/chrome/browser/search/hotword_service.cc File chrome/browser/search/hotword_service.cc (right): https://codereview.chromium.org/196753002/diff/60001/chrome/browser/search/hotword_service.cc#newcode69 chrome/browser/search/hotword_service.cc:69: if (!extension_system || !extension_system->extension_service()) On 2014/03/12 23:30:49, Jered wrote: ...
6 years, 9 months ago (2014-03-12 23:34:28 UTC) #10
rpetterson
battre@chromium.org: Please review changes in profile_resetter Mike & Jered, I had to update unittests to ...
6 years, 9 months ago (2014-03-13 23:43:53 UTC) #11
Jered
search slgtm
6 years, 9 months ago (2014-03-13 23:55:52 UTC) #12
miket_OOO
OK
6 years, 9 months ago (2014-03-14 04:04:06 UTC) #13
battre
https://codereview.chromium.org/196753002/diff/120001/chrome/browser/profile_resetter/profile_resetter_unittest.cc File chrome/browser/profile_resetter/profile_resetter_unittest.cc (right): https://codereview.chromium.org/196753002/diff/120001/chrome/browser/profile_resetter/profile_resetter_unittest.cc#newcode621 chrome/browser/profile_resetter/profile_resetter_unittest.cc:621: // and should not be re-enabled on reset if ...
6 years, 9 months ago (2014-03-14 09:23:14 UTC) #14
rpetterson
https://codereview.chromium.org/196753002/diff/120001/chrome/browser/profile_resetter/profile_resetter_unittest.cc File chrome/browser/profile_resetter/profile_resetter_unittest.cc (right): https://codereview.chromium.org/196753002/diff/120001/chrome/browser/profile_resetter/profile_resetter_unittest.cc#newcode621 chrome/browser/profile_resetter/profile_resetter_unittest.cc:621: // and should not be re-enabled on reset if ...
6 years, 9 months ago (2014-03-14 16:31:27 UTC) #15
rpetterson
Dominic, ping? This is for a stable blocker.
6 years, 9 months ago (2014-03-17 17:27:46 UTC) #16
rpetterson
Mike, In talking with Balazs and Dominic, we uncovered an issue with the profile resetter ...
6 years, 9 months ago (2014-03-17 19:36:08 UTC) #17
miket_OOO
lgtm https://codereview.chromium.org/196753002/diff/160001/chrome/browser/extensions/extension_service.cc File chrome/browser/extensions/extension_service.cc (right): https://codereview.chromium.org/196753002/diff/160001/chrome/browser/extensions/extension_service.cc#newcode1079 chrome/browser/extensions/extension_service.cc:1079: extension->get()->location() != Manifest::EXTERNAL_COMPONENT) This is starting to look ...
6 years, 9 months ago (2014-03-17 20:10:50 UTC) #18
rpetterson
https://codereview.chromium.org/196753002/diff/160001/chrome/browser/extensions/extension_service.cc File chrome/browser/extensions/extension_service.cc (right): https://codereview.chromium.org/196753002/diff/160001/chrome/browser/extensions/extension_service.cc#newcode1079 chrome/browser/extensions/extension_service.cc:1079: extension->get()->location() != Manifest::EXTERNAL_COMPONENT) On 2014/03/17 20:10:51, miket wrote: > ...
6 years, 9 months ago (2014-03-17 21:14:29 UTC) #19
miket_OOO
> Because this needs to be merged, I'd rather keep the change small at this ...
6 years, 9 months ago (2014-03-17 21:28:12 UTC) #20
rpetterson
The CQ bit was checked by rlp@chromium.org
6 years, 9 months ago (2014-03-18 00:23:11 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rlp@chromium.org/196753002/180001
6 years, 9 months ago (2014-03-18 00:26:55 UTC) #22
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-18 01:46:34 UTC) #23
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=283253
6 years, 9 months ago (2014-03-18 01:46:35 UTC) #24
rpetterson
The CQ bit was checked by rlp@chromium.org
6 years, 9 months ago (2014-03-18 03:23:41 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rlp@chromium.org/196753002/180001
6 years, 9 months ago (2014-03-18 03:25:13 UTC) #26
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-18 06:27:53 UTC) #27
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=283458
6 years, 9 months ago (2014-03-18 06:27:54 UTC) #28
rpetterson
The CQ bit was checked by rlp@chromium.org
6 years, 9 months ago (2014-03-18 08:29:10 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rlp@chromium.org/196753002/180001
6 years, 9 months ago (2014-03-18 08:29:18 UTC) #30
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-18 11:47:56 UTC) #31
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=283534
6 years, 9 months ago (2014-03-18 11:47:57 UTC) #32
rpetterson
On 2014/03/18 11:47:57, I haz the power (commit-bot) wrote: > Retried try job too often ...
6 years, 9 months ago (2014-03-18 16:28:41 UTC) #33
asargent_no_longer_on_chrome
On 2014/03/18 16:28:41, rpetterson wrote: > On 2014/03/18 11:47:57, I haz the power (commit-bot) wrote: ...
6 years, 9 months ago (2014-03-18 23:14:11 UTC) #34
rpetterson
On 2014/03/18 23:14:11, asargent(VACATION until 3_18) wrote: > On 2014/03/18 16:28:41, rpetterson wrote: > > ...
6 years, 9 months ago (2014-03-18 23:16:20 UTC) #35
rpetterson
The CQ bit was checked by rlp@chromium.org
6 years, 9 months ago (2014-03-19 18:00:12 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rlp@chromium.org/196753002/260001
6 years, 9 months ago (2014-03-19 18:00:26 UTC) #37
commit-bot: I haz the power
6 years, 9 months ago (2014-03-19 21:41:14 UTC) #38
Message was sent while issue was closed.
Change committed as 258106

Powered by Google App Engine
This is Rietveld 408576698