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

Issue 12310042: Do not initialize sync or policy on import process. (Closed)

Created:
7 years, 10 months ago by Andrew T Wilson (Slow)
Modified:
7 years, 10 months ago
CC:
chromium-reviews, Raman Kakilate, akalin, estade+watch_chromium.org, benquan, Raghu Simha, ahutter, dbeam+watch-autofill_chromium.org, Dane Wallinga, dyu1, dhollowa+watch_chromium.org, Albert Bodenhamer, haitaol1, Ilya Sherman, tim (not reviewing)
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Do not initialize sync or policy on import process. This fixes a conflict that occurs when the WebDataService is initialized on both the Import and normal processes and they both try to open the same DB file. This is a temporary fix for M26 - for M27 we will change ProfileDependencyManager to not launch any services on the import process. TBR=pkasting BUG=174864 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=184116

Patch Set 1 #

Patch Set 2 : Whitespace fix. #

Total comments: 1

Patch Set 3 : Rebase to ToT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -1 line) Patch
M chrome/browser/policy/user_policy_signin_service.cc View 1 2 2 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/sync/profile_sync_service_factory.cc View 1 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/webdata/web_data_service.cc View 1 2 3 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Andrew T Wilson (Slow)
tapted: please review for overall soundness pkasting: I've added a DCHECK to WebDataService because it ...
7 years, 10 months ago (2013-02-21 17:08:51 UTC) #1
Andrew T Wilson (Slow)
BTW, this fixes an M26 release blocker, so please look at it as soon as ...
7 years, 10 months ago (2013-02-21 20:31:07 UTC) #2
Joao da Silva
lgtm
7 years, 10 months ago (2013-02-21 20:36:29 UTC) #3
tapted
lgtm - this approach seems sound. The added DCHECK is a good idea. However, note ...
7 years, 10 months ago (2013-02-21 23:55:48 UTC) #4
Andrew T Wilson (Slow)
OK, moving pkasting to TBR since it's just a DCHECK() in WebDataService. I actually will ...
7 years, 10 months ago (2013-02-22 08:32:06 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/atwilson@chromium.org/12310042/7002
7 years, 10 months ago (2013-02-22 08:32:21 UTC) #6
commit-bot: I haz the power
Failed to apply patch for chrome/browser/policy/user_policy_signin_service.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 10 months ago (2013-02-22 08:32:23 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/atwilson@chromium.org/12310042/2007
7 years, 10 months ago (2013-02-22 13:15:47 UTC) #8
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) interactive_ui_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=86691
7 years, 10 months ago (2013-02-22 14:19:48 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/atwilson@chromium.org/12310042/2007
7 years, 10 months ago (2013-02-22 14:28:08 UTC) #10
commit-bot: I haz the power
Change committed as 184116
7 years, 10 months ago (2013-02-22 15:07:49 UTC) #11
Peter Kasting
7 years, 10 months ago (2013-02-22 19:57:56 UTC) #12
Message was sent while issue was closed.
LGTM

https://codereview.chromium.org/12310042/diff/7002/chrome/browser/webdata/web...
File chrome/browser/webdata/web_data_service.cc (right):

https://codereview.chromium.org/12310042/diff/7002/chrome/browser/webdata/web...
chrome/browser/webdata/web_data_service.cc:93:
DCHECK(!ProfileManager::IsImportProcess(*CommandLine::ForCurrentProcess()));
Nit: The comment above is for the statement below.  Move this above or below and
give it its own comment about why we need to ensure this isn't the import
process (or simply refer to an explanatory comment elsewhere).

Powered by Google App Engine
This is Rietveld 408576698