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

Issue 2639153002: Make extensions DSE persistent in browser prefs (Reland) (Closed)

Created:
3 years, 11 months ago by Alexander Yashkin
Modified:
3 years, 9 months ago
CC:
chromium-apps-reviews_chromium.org, chromium-reviews, extensions-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make extensions DSE persistent in browser prefs (Reland) This fix stores extension installed DSE in browser prefs using extension overriden preferences API. This is needed so extension installed default search would be available from browser before extensions subsystem load. This will affect url for first loaded NTP which is taken from current default search settings. BUG=450534 R=pkasting@chromium.org, vasilii@chromium.org Review-Url: https://codereview.chromium.org/2479113002 Cr-Original-Commit-Position: refs/heads/master@{#442235} Review-Url: https://codereview.chromium.org/2639153002 Cr-Commit-Position: refs/heads/master@{#453949} Committed: https://chromium.googlesource.com/chromium/src/+/858416e8845ab1289879133ca455fe86473e6ec2

Patch Set 1 #

Patch Set 2 : Fixed default extension keywords conflicts problem #

Patch Set 3 : Fixed flakiness caused by extension reload while TemplateURLService is not loaded #

Total comments: 10

Patch Set 4 : Fixed after review #

Patch Set 5 : Rebased and updated after review, use new keyword conflicts resolution #

Total comments: 13

Patch Set 6 : Fixed after review, round 4 #

Total comments: 12

Patch Set 7 : Fixed after review, round 5 #

Patch Set 8 : Fixed after review, round 6 #

Total comments: 3

Patch Set 9 : Minor fix after review, round 7 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+480 lines, -293 lines) Patch
M chrome/browser/extensions/api/settings_overrides/settings_overrides_api.h View 4 chunks +3 lines, -15 lines 0 comments Download
M chrome/browser/extensions/api/settings_overrides/settings_overrides_api.cc View 1 2 3 4 8 chunks +34 lines, -67 lines 0 comments Download
M chrome/browser/extensions/api/settings_overrides/settings_overrides_browsertest.cc View 1 2 3 4 5 6 7 8 1 chunk +178 lines, -79 lines 0 comments Download
M chrome/browser/prefs/session_startup_pref.h View 1 chunk +6 lines, -4 lines 0 comments Download
M chrome/browser/search_engines/template_url_service_sync_unittest.cc View 1 2 3 4 4 chunks +106 lines, -1 line 0 comments Download
M chrome/browser/search_engines/template_url_service_test_util.h View 2 chunks +13 lines, -0 lines 0 comments Download
M chrome/browser/search_engines/template_url_service_test_util.cc View 2 3 4 2 chunks +26 lines, -0 lines 0 comments Download
M chrome/browser/search_engines/template_url_service_unittest.cc View 1 2 3 4 5 10 chunks +50 lines, -25 lines 0 comments Download
M components/search_engines/default_search_manager.h View 1 2 3 4 1 chunk +0 lines, -8 lines 0 comments Download
M components/search_engines/default_search_manager.cc View 1 2 3 4 6 chunks +13 lines, -23 lines 0 comments Download
M components/search_engines/default_search_manager_unittest.cc View 1 2 3 4 2 chunks +4 lines, -6 lines 0 comments Download
M components/search_engines/search_engines_test_util.cc View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
M components/search_engines/template_url.h View 1 2 3 4 5 6 2 chunks +7 lines, -5 lines 0 comments Download
M components/search_engines/template_url.cc View 1 2 3 4 2 chunks +11 lines, -11 lines 0 comments Download
M components/search_engines/template_url_prepopulate_data.h View 1 chunk +4 lines, -0 lines 0 comments Download
M components/search_engines/template_url_prepopulate_data.cc View 1 chunk +12 lines, -0 lines 0 comments Download
M components/search_engines/template_url_service.h View 1 2 3 4 1 chunk +0 lines, -7 lines 0 comments Download
M components/search_engines/template_url_service.cc View 1 2 3 4 5 6 5 chunks +10 lines, -40 lines 0 comments Download

Messages

Total messages: 64 (13 generated)
Alexander Yashkin
@vasillii, pkasting, PTAL again I found problem with keywords conflict, added minor change to solution ...
3 years, 11 months ago (2017-01-18 06:56:17 UTC) #1
Alexander Yashkin
Can you please run tryjobs several times on win_chromium_rel_ng, win_chromium_x64_rel_ng configuration so that I was ...
3 years, 11 months ago (2017-01-18 07:04:47 UTC) #6
vasilii
Can you clarify step by step what happened when the test failed? I don't see ...
3 years, 11 months ago (2017-01-18 12:17:04 UTC) #7
Alexander Yashkin
On 2017/01/18 12:17:04, vasilii (slow) wrote: > Can you clarify step by step what happened ...
3 years, 11 months ago (2017-01-18 12:50:35 UTC) #8
Alexander Yashkin
> To fix it I added extension uninstall at the end of OverridenDSEPersists test. > ...
3 years, 11 months ago (2017-01-19 06:28:44 UTC) #9
vasilii
On 2017/01/18 12:50:35, Alexander Yashkin wrote: > On 2017/01/18 12:17:04, vasilii (slow) wrote: > > ...
3 years, 11 months ago (2017-01-19 08:27:35 UTC) #10
Alexander Yashkin
On 2017/01/19 08:27:35, vasilii (slow) wrote: > On 2017/01/18 12:50:35, Alexander Yashkin wrote: > > ...
3 years, 11 months ago (2017-01-19 08:30:18 UTC) #11
vasilii
is_component_build = true enable_nacl = false generated with gn gen out\Default --ide=vs
3 years, 11 months ago (2017-01-19 11:58:43 UTC) #12
Alexander Yashkin
On 2017/01/19 11:58:43, vasilii (slow) wrote: > is_component_build = true > enable_nacl = false > ...
3 years, 11 months ago (2017-01-19 15:11:47 UTC) #13
vasilii
On 2017/01/19 15:11:47, Alexander Yashkin wrote: > On 2017/01/19 11:58:43, vasilii (slow) wrote: > > ...
3 years, 11 months ago (2017-01-20 17:06:52 UTC) #14
vasilii
2nd call > browser_tests.exe!extensions::SettingsOverridesAPI::OnExtensionLoaded() Line 159 C++ browser_tests.exe!extensions::ExtensionRegistry::TriggerOnLoaded() Line 55 C++ browser_tests.exe!ExtensionService::NotifyExtensionLoaded() Line 1081 C++ ...
3 years, 11 months ago (2017-01-20 17:08:11 UTC) #15
Alexander Yashkin
@vasilii I have analyzed the code of extension service and browser tests. Yes it looks ...
3 years, 11 months ago (2017-01-23 10:07:04 UTC) #16
vasilii
I added log statements and that's what I get just before the failure: [4456:1520:0123/170409.216:INFO:settings_overrides_api.cc(158)] !!!!! ...
3 years, 11 months ago (2017-01-23 16:09:26 UTC) #17
Alexander Yashkin
On 2017/01/23 16:09:26, vasilii wrote: > I added log statements and that's what I get ...
3 years, 11 months ago (2017-01-25 11:24:49 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2639153002/40001
3 years, 11 months ago (2017-01-25 11:27:29 UTC) #20
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. CQ run can only be started by full ...
3 years, 11 months ago (2017-01-25 11:27:30 UTC) #22
Peter Kasting
I don't think I really understand the passing-the-extension-ID-in-prefs thing. It seems like this data ought ...
3 years, 11 months ago (2017-01-25 22:31:24 UTC) #23
Alexander Yashkin
https://codereview.chromium.org/2639153002/diff/40001/chrome/browser/extensions/api/settings_overrides/settings_overrides_api.cc File chrome/browser/extensions/api/settings_overrides/settings_overrides_api.cc (right): https://codereview.chromium.org/2639153002/diff/40001/chrome/browser/extensions/api/settings_overrides/settings_overrides_api.cc#newcode247 chrome/browser/extensions/api/settings_overrides/settings_overrides_api.cc:247: // Set extension id to prefs, so it can ...
3 years, 11 months ago (2017-01-26 07:51:01 UTC) #24
Alexander Yashkin
On 2017/01/25 at 22:31:24, pkasting wrote: > I don't think I really understand the passing-the-extension-ID-in-prefs ...
3 years, 11 months ago (2017-01-26 08:40:17 UTC) #25
Peter Kasting
Why not just say in conflict resolution that, if two extensions try to register the ...
3 years, 11 months ago (2017-01-26 08:52:21 UTC) #26
Alexander Yashkin
On 2017/01/26 at 08:52:21, pkasting wrote: > Why not just say in conflict resolution that, ...
3 years, 11 months ago (2017-01-26 13:58:38 UTC) #27
Peter Kasting
On 2017/01/26 13:58:38, Alexander Yashkin wrote: > On 2017/01/26 at 08:52:21, pkasting wrote: > > ...
3 years, 11 months ago (2017-01-26 18:05:04 UTC) #28
Alexander Yashkin
On 2017/01/26 at 18:05:04, pkasting wrote: > On 2017/01/26 13:58:38, Alexander Yashkin wrote: > > ...
3 years, 11 months ago (2017-01-27 05:26:38 UTC) #29
Peter Kasting
On 2017/01/27 05:26:38, Alexander Yashkin wrote: > On 2017/01/26 at 18:05:04, pkasting wrote: > > ...
3 years, 11 months ago (2017-01-27 06:15:25 UTC) #30
Alexander Yashkin
On 2017/01/27 at 06:15:25, pkasting wrote: > On 2017/01/27 05:26:38, Alexander Yashkin wrote: > > ...
3 years, 11 months ago (2017-01-27 08:13:25 UTC) #31
Peter Kasting
On 2017/01/27 08:13:25, Alexander Yashkin wrote: > Ok, real case I have stumbled on and ...
3 years, 10 months ago (2017-01-27 19:51:47 UTC) #32
Alexander Yashkin
On 2017/01/27 at 19:51:47, pkasting wrote: > On 2017/01/27 08:13:25, Alexander Yashkin wrote: > > ...
3 years, 10 months ago (2017-01-27 20:14:49 UTC) #33
Peter Kasting
On 2017/01/27 20:14:49, Alexander Yashkin wrote: > On 2017/01/27 at 19:51:47, pkasting wrote: > > ...
3 years, 10 months ago (2017-01-27 20:25:13 UTC) #34
Alexander Yashkin
On 2017/01/27 at 20:25:13, pkasting wrote: > On 2017/01/27 20:14:49, Alexander Yashkin wrote: > > ...
3 years, 10 months ago (2017-01-27 20:41:06 UTC) #35
vasilii
I agree with Peter that the discussion about the ID in prefs is irrelevant to ...
3 years, 10 months ago (2017-01-30 15:39:17 UTC) #36
Alexander Yashkin
On 2017/01/30 at 15:39:17, vasilii wrote: > I agree with Peter that the discussion about ...
3 years, 10 months ago (2017-01-30 16:19:18 UTC) #37
vasilii
> > - I think that an extension search engine may hide the prepopulated search ...
3 years, 10 months ago (2017-01-30 17:25:30 UTC) #38
Alexander Yashkin
Vasilii, Peter PTAL at this CL again. No major changes, IMHO. I have rebased on ...
3 years, 9 months ago (2017-02-26 18:26:28 UTC) #39
vasilii
https://codereview.chromium.org/2639153002/diff/80001/chrome/browser/extensions/api/settings_overrides/settings_overrides_browsertest.cc File chrome/browser/extensions/api/settings_overrides/settings_overrides_browsertest.cc (right): https://codereview.chromium.org/2639153002/diff/80001/chrome/browser/extensions/api/settings_overrides/settings_overrides_browsertest.cc#newcode212 chrome/browser/extensions/api/settings_overrides/settings_overrides_browsertest.cc:212: EXPECT_TRUE(VerifyTemplateURLServiceLoad(url_service)); What's going on here? Why you load the ...
3 years, 9 months ago (2017-02-27 15:20:35 UTC) #40
Alexander Yashkin
https://codereview.chromium.org/2639153002/diff/80001/chrome/browser/extensions/api/settings_overrides/settings_overrides_browsertest.cc File chrome/browser/extensions/api/settings_overrides/settings_overrides_browsertest.cc (right): https://codereview.chromium.org/2639153002/diff/80001/chrome/browser/extensions/api/settings_overrides/settings_overrides_browsertest.cc#newcode212 chrome/browser/extensions/api/settings_overrides/settings_overrides_browsertest.cc:212: EXPECT_TRUE(VerifyTemplateURLServiceLoad(url_service)); On 2017/02/27 at 15:20:35, vasilii wrote: > What's ...
3 years, 9 months ago (2017-02-27 19:36:03 UTC) #41
Peter Kasting
LGTM with one substantive concern. https://codereview.chromium.org/2639153002/diff/100001/chrome/browser/extensions/api/settings_overrides/settings_overrides_browsertest.cc File chrome/browser/extensions/api/settings_overrides/settings_overrides_browsertest.cc (right): https://codereview.chromium.org/2639153002/diff/100001/chrome/browser/extensions/api/settings_overrides/settings_overrides_browsertest.cc#newcode204 chrome/browser/extensions/api/settings_overrides/settings_overrides_browsertest.cc:204: // This tests checks ...
3 years, 9 months ago (2017-02-28 00:56:37 UTC) #42
Alexander Yashkin
https://codereview.chromium.org/2639153002/diff/100001/chrome/browser/extensions/api/settings_overrides/settings_overrides_browsertest.cc File chrome/browser/extensions/api/settings_overrides/settings_overrides_browsertest.cc (right): https://codereview.chromium.org/2639153002/diff/100001/chrome/browser/extensions/api/settings_overrides/settings_overrides_browsertest.cc#newcode204 chrome/browser/extensions/api/settings_overrides/settings_overrides_browsertest.cc:204: // This tests checks that extension overriding default search ...
3 years, 9 months ago (2017-02-28 11:59:56 UTC) #43
vasilii
https://codereview.chromium.org/2639153002/diff/80001/chrome/browser/extensions/api/settings_overrides/settings_overrides_browsertest.cc File chrome/browser/extensions/api/settings_overrides/settings_overrides_browsertest.cc (right): https://codereview.chromium.org/2639153002/diff/80001/chrome/browser/extensions/api/settings_overrides/settings_overrides_browsertest.cc#newcode212 chrome/browser/extensions/api/settings_overrides/settings_overrides_browsertest.cc:212: EXPECT_TRUE(VerifyTemplateURLServiceLoad(url_service)); On 2017/02/27 19:36:03, Alexander Yashkin wrote: > On ...
3 years, 9 months ago (2017-02-28 14:59:42 UTC) #44
Alexander Yashkin
https://codereview.chromium.org/2639153002/diff/80001/chrome/browser/extensions/api/settings_overrides/settings_overrides_browsertest.cc File chrome/browser/extensions/api/settings_overrides/settings_overrides_browsertest.cc (right): https://codereview.chromium.org/2639153002/diff/80001/chrome/browser/extensions/api/settings_overrides/settings_overrides_browsertest.cc#newcode212 chrome/browser/extensions/api/settings_overrides/settings_overrides_browsertest.cc:212: EXPECT_TRUE(VerifyTemplateURLServiceLoad(url_service)); On 2017/02/28 14:59:41, vasilii wrote: > On 2017/02/27 ...
3 years, 9 months ago (2017-02-28 19:30:29 UTC) #45
Peter Kasting
https://codereview.chromium.org/2639153002/diff/100001/components/search_engines/default_search_manager.cc File components/search_engines/default_search_manager.cc (right): https://codereview.chromium.org/2639153002/diff/100001/components/search_engines/default_search_manager.cc#newcode263 components/search_engines/default_search_manager.cc:263: MergePrefsDataWithPrepopulated(); On 2017/02/28 11:59:56, Alexander Yashkin wrote: > What ...
3 years, 9 months ago (2017-02-28 23:30:30 UTC) #46
Alexander Yashkin
https://codereview.chromium.org/2639153002/diff/100001/components/search_engines/default_search_manager.cc File components/search_engines/default_search_manager.cc (right): https://codereview.chromium.org/2639153002/diff/100001/components/search_engines/default_search_manager.cc#newcode263 components/search_engines/default_search_manager.cc:263: MergePrefsDataWithPrepopulated(); On 2017/02/28 23:30:30, Peter Kasting wrote: > On ...
3 years, 9 months ago (2017-03-01 05:36:43 UTC) #47
Peter Kasting
OK. I'm satisfied on my other concern, BTW; the function didn't do what I thought ...
3 years, 9 months ago (2017-03-01 06:12:15 UTC) #48
Alexander Yashkin
@gab, PTAL at session_startup_pref.h
3 years, 9 months ago (2017-03-01 06:39:04 UTC) #51
vasilii
lgtm https://codereview.chromium.org/2639153002/diff/140001/chrome/browser/extensions/api/settings_overrides/settings_overrides_browsertest.cc File chrome/browser/extensions/api/settings_overrides/settings_overrides_browsertest.cc (right): https://codereview.chromium.org/2639153002/diff/140001/chrome/browser/extensions/api/settings_overrides/settings_overrides_browsertest.cc#newcode200 chrome/browser/extensions/api/settings_overrides/settings_overrides_browsertest.cc:200: UninstallExtension( I think it's useless
3 years, 9 months ago (2017-03-01 09:22:26 UTC) #52
Alexander Yashkin
https://codereview.chromium.org/2639153002/diff/140001/chrome/browser/extensions/api/settings_overrides/settings_overrides_browsertest.cc File chrome/browser/extensions/api/settings_overrides/settings_overrides_browsertest.cc (right): https://codereview.chromium.org/2639153002/diff/140001/chrome/browser/extensions/api/settings_overrides/settings_overrides_browsertest.cc#newcode200 chrome/browser/extensions/api/settings_overrides/settings_overrides_browsertest.cc:200: UninstallExtension( On 2017/03/01 09:22:25, vasilii wrote: > I think ...
3 years, 9 months ago (2017-03-01 10:59:32 UTC) #53
vasilii
On 2017/03/01 10:59:32, Alexander Yashkin wrote: > https://codereview.chromium.org/2639153002/diff/140001/chrome/browser/extensions/api/settings_overrides/settings_overrides_browsertest.cc > File > chrome/browser/extensions/api/settings_overrides/settings_overrides_browsertest.cc > (right): > ...
3 years, 9 months ago (2017-03-01 11:40:00 UTC) #54
Alexander Yashkin
https://codereview.chromium.org/2639153002/diff/140001/chrome/browser/extensions/api/settings_overrides/settings_overrides_browsertest.cc File chrome/browser/extensions/api/settings_overrides/settings_overrides_browsertest.cc (right): https://codereview.chromium.org/2639153002/diff/140001/chrome/browser/extensions/api/settings_overrides/settings_overrides_browsertest.cc#newcode200 chrome/browser/extensions/api/settings_overrides/settings_overrides_browsertest.cc:200: UninstallExtension( On 2017/03/01 10:59:32, Alexander Yashkin wrote: > On ...
3 years, 9 months ago (2017-03-01 14:23:55 UTC) #55
Alexander Yashkin
@bauerb, PTAL at session_startup_pref.h, gab is busy.
3 years, 9 months ago (2017-03-01 15:20:30 UTC) #57
Bernhard Bauer
prefs/ LGTM
3 years, 9 months ago (2017-03-01 15:45:48 UTC) #58
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2639153002/160001
3 years, 9 months ago (2017-03-01 15:49:58 UTC) #61
commit-bot: I haz the power
3 years, 9 months ago (2017-03-01 16:43:39 UTC) #64
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/858416e8845ab1289879133ca455...

Powered by Google App Engine
This is Rietveld 408576698