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

Issue 11572036: Do not load extension system in the Profile import process. (Closed)

Created:
8 years ago by tapted
Modified:
8 years ago
CC:
chromium-reviews, joi+watch-content_chromium.org, Aaron Boodman, rginda+watch_chromium.org, darin-cc_chromium.org, chromium-apps-reviews_chromium.org, jeremya, koz (OOO until 15th September), benwells
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Do not load extension system in the Profile import process. Also, defer loading component extensions with background pages until the import process is complete, so that the renderer host does not compete for the database lock. This also adds a regression test for http://crbug.com/163925. BUG=163925, 107636 TEST=Test first-run flows and profile import after uninstalling chrome and removing AppData/Local/Google/Chrome directory Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=174302

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : cleanups #

Total comments: 3

Patch Set 4 : comment about test-only function #

Total comments: 6

Patch Set 5 : style #

Patch Set 6 : alternative to promoting kLaunchAsBrowser #

Patch Set 7 : Handle possible DCHECK/flake in FindBrowserWithWebContents #

Total comments: 3

Patch Set 8 : patch to check test behaviour #

Patch Set 9 : resolve possible database conflicts in the browser process #

Total comments: 9

Patch Set 10 : address review comments in component_loader* #

Patch Set 11 : remove {Get,Set}ExtraArgumentsForImportProcess from first_run #

Patch Set 12 : rollback to patchset 10 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+222 lines, -79 lines) Patch
M chrome/browser/chrome_browser_main.cc View 1 2 3 4 5 chunks +5 lines, -9 lines 0 comments Download
M chrome/browser/extensions/component_loader.h View 1 2 3 4 5 6 7 8 9 3 chunks +17 lines, -3 lines 0 comments Download
M chrome/browser/extensions/component_loader.cc View 1 2 3 4 5 6 7 8 9 4 chunks +30 lines, -8 lines 0 comments Download
M chrome/browser/extensions/component_loader_unittest.cc View 1 2 3 4 5 6 7 8 9 6 chunks +37 lines, -12 lines 0 comments Download
M chrome/browser/extensions/extension_service.cc View 1 2 3 4 5 6 7 8 9 5 chunks +27 lines, -28 lines 0 comments Download
M chrome/browser/extensions/extension_system.cc View 1 1 chunk +8 lines, -11 lines 0 comments Download
M chrome/browser/first_run/first_run.h View 1 2 3 4 5 11 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/first_run/first_run.cc View 1 2 3 4 5 11 1 chunk +15 lines, -0 lines 0 comments Download
M chrome/browser/first_run/first_run_browsertest.cc View 1 2 3 4 5 6 7 11 2 chunks +32 lines, -0 lines 0 comments Download
M chrome/browser/first_run/first_run_win.cc View 1 2 3 4 5 11 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_manager.h View 1 2 3 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_manager.cc View 3 chunks +23 lines, -7 lines 0 comments Download
M chrome/browser/ui/views/location_bar/location_bar_view.cc View 1 2 3 4 5 6 2 chunks +4 lines, -1 line 0 comments Download
M chrome/common/chrome_switches.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
Yoyo Zhou
Extensions code LGTM, but you should find a more qualified reviewer for the profile and ...
8 years ago (2012-12-15 02:00:22 UTC) #1
tapted
I've done some additional end-to-end testing with official/release builds and the installer. Everything seems happy. ...
8 years ago (2012-12-17 05:40:39 UTC) #2
Jói
https://codereview.chromium.org/11572036/diff/13001/content/public/common/content_switches.cc File content/public/common/content_switches.cc (right): https://codereview.chromium.org/11572036/diff/13001/content/public/common/content_switches.cc#newcode468 content/public/common/content_switches.cc:468: const char kLaunchAsBrowser[] = "as-browser"; It feels a bit ...
8 years ago (2012-12-17 13:46:15 UTC) #3
sky
LGTM https://codereview.chromium.org/11572036/diff/13001/chrome/browser/first_run/first_run_browsertest.cc File chrome/browser/first_run/first_run_browsertest.cc (right): https://codereview.chromium.org/11572036/diff/13001/chrome/browser/first_run/first_run_browsertest.cc#newcode55 chrome/browser/first_run/first_run_browsertest.cc:55: }; private: DISALLOW_..
8 years ago (2012-12-17 17:19:53 UTC) #4
Miranda Callahan
profile changes LGTM with nit. https://codereview.chromium.org/11572036/diff/13001/chrome/browser/chrome_browser_main.cc File chrome/browser/chrome_browser_main.cc (right): https://codereview.chromium.org/11572036/diff/13001/chrome/browser/chrome_browser_main.cc#newcode1184 chrome/browser/chrome_browser_main.cc:1184: || parsed_command_line().HasSwitch(switches::kFirstRunForceImport)) { style ...
8 years ago (2012-12-17 19:04:34 UTC) #5
tapted
sky please take another look for changes: * chrome/browser/first_run * chrome/browser/ui/views (/location_bar -- see below) ...
8 years ago (2012-12-18 02:25:58 UTC) #6
Jói
LGTM, much preferred, and great to have the added test to verify the behavior.
8 years ago (2012-12-18 10:00:11 UTC) #7
sky
https://codereview.chromium.org/11572036/diff/23004/chrome/browser/first_run/first_run_win.cc File chrome/browser/first_run/first_run_win.cc (right): https://codereview.chromium.org/11572036/diff/23004/chrome/browser/first_run/first_run_win.cc#newcode336 chrome/browser/first_run/first_run_win.cc:336: import_cmd.AppendArguments(first_run::GetExtraArgumentsForImportProcess(), Instead of this, can you mutate the command ...
8 years ago (2012-12-18 16:24:02 UTC) #8
tapted
https://codereview.chromium.org/11572036/diff/23004/chrome/browser/first_run/first_run_win.cc File chrome/browser/first_run/first_run_win.cc (right): https://codereview.chromium.org/11572036/diff/23004/chrome/browser/first_run/first_run_win.cc#newcode336 chrome/browser/first_run/first_run_win.cc:336: import_cmd.AppendArguments(first_run::GetExtraArgumentsForImportProcess(), On 2012/12/18 16:24:02, sky wrote: > Instead of ...
8 years ago (2012-12-19 00:07:53 UTC) #9
tapted
yoz - PTAL for changes (extensions/component_loader*, extension_service) Trying out those experiments let me pick up ...
8 years ago (2012-12-19 13:19:13 UTC) #10
sky
https://codereview.chromium.org/11572036/diff/23004/chrome/browser/first_run/first_run_win.cc File chrome/browser/first_run/first_run_win.cc (right): https://codereview.chromium.org/11572036/diff/23004/chrome/browser/first_run/first_run_win.cc#newcode336 chrome/browser/first_run/first_run_win.cc:336: import_cmd.AppendArguments(first_run::GetExtraArgumentsForImportProcess(), On 2012/12/19 00:07:53, tapted wrote: > On 2012/12/18 ...
8 years ago (2012-12-19 16:14:00 UTC) #11
Yoyo Zhou
https://codereview.chromium.org/11572036/diff/45019/chrome/browser/extensions/component_loader.h File chrome/browser/extensions/component_loader.h (right): https://codereview.chromium.org/11572036/diff/45019/chrome/browser/extensions/component_loader.h#newcode36 chrome/browser/extensions/component_loader.h:36: // will be deferred until LoadDeferred if the argument ...
8 years ago (2012-12-19 21:50:38 UTC) #12
tapted
On 2012/12/19 16:14:00, sky wrote: > What happens if you add --as-browser to your tests ...
8 years ago (2012-12-19 21:53:01 UTC) #13
sky
I like the white list, but is it possible to add --as-browser to the white ...
8 years ago (2012-12-19 22:24:47 UTC) #14
tapted
On 2012/12/19 22:24:47, sky wrote: > I like the white list, but is it possible ...
8 years ago (2012-12-19 22:31:38 UTC) #15
tapted
https://codereview.chromium.org/11572036/diff/45019/chrome/browser/extensions/component_loader.h File chrome/browser/extensions/component_loader.h (right): https://codereview.chromium.org/11572036/diff/45019/chrome/browser/extensions/component_loader.h#newcode36 chrome/browser/extensions/component_loader.h:36: // will be deferred until LoadDeferred if the argument ...
8 years ago (2012-12-19 22:58:24 UTC) #16
Yoyo Zhou
LGTM for extensions
8 years ago (2012-12-19 22:59:41 UTC) #17
tapted
On 2012/12/19 22:31:38, tapted wrote: > On 2012/12/19 22:24:47, sky wrote: > > I like ...
8 years ago (2012-12-20 00:08:34 UTC) #18
sky
John knows more about this flag than I do. I'm passing it to him. John, ...
8 years ago (2012-12-20 00:19:54 UTC) #19
sky
Sorry, forgot to add John. John knows more about this flag than I do. I'm ...
8 years ago (2012-12-20 00:20:19 UTC) #20
jam
On 2012/12/20 00:20:19, sky wrote: > Sorry, forgot to add John. > > John knows ...
8 years ago (2012-12-20 00:42:29 UTC) #21
tapted
On 2012/12/20 00:42:29, John Abd-El-Malek wrote: > I looked through most (but not all) of ...
8 years ago (2012-12-20 00:57:28 UTC) #22
jam
On 2012/12/20 00:57:28, tapted wrote: > On 2012/12/20 00:42:29, John Abd-El-Malek wrote: > > I ...
8 years ago (2012-12-20 02:34:18 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tapted@chromium.org/11572036/45024
8 years ago (2012-12-20 22:28:42 UTC) #24
commit-bot: I haz the power
8 years ago (2012-12-21 01:16:27 UTC) #25
Message was sent while issue was closed.
Change committed as 174302

Powered by Google App Engine
This is Rietveld 408576698