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

Issue 14143010: Introduce IEImporterTestRegistryOverrider to be able to override the registry for a test and flag t… (Closed)

Created:
7 years, 8 months ago by gab
Modified:
7 years, 7 months ago
CC:
chromium-reviews, tfarina
Visibility:
Public.

Description

Introduce IEImporterTestRegistryOverrider to be able to override the registry for a test and flag the environment for the child process to know it should also override the registry. Prerequisite to make IEImporterBrowserTest pass when using the ExternalProcessImporterHost in https://codereview.chromium.org/12670013/. Keeping this as a separate CL given that one is already very complex and has been lgtm'ed as is by 4 reviewers already. Precursor CL to https://codereview.chromium.org/12670013/. BUG=219419, 22412 TEST=Make sure tests run without affecting the real registry. Make sure (via logging) that the override doesn't happen when running import directly from Chrome. Make sure the IEImporterBrowserTest pass both now (in-process) and on top of https://codereview.chromium.org/12670013/ (out-of-process). Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=198256

Patch Set 1 #

Patch Set 2 : grammar #

Total comments: 14

Patch Set 3 : rework #

Total comments: 15

Patch Set 4 : nits #

Patch Set 5 : Reset override_active_in_process_ to false in destructor #

Patch Set 6 : fix typos #

Patch Set 7 : rework + logging #

Patch Set 8 : Try forcing the override?! #

Patch Set 9 : more logs #

Patch Set 10 : change interface, re-overriding works?! #

Patch Set 11 : Works :) -- fix interface comments and remove logs #

Total comments: 6

Patch Set 12 : review #

Patch Set 13 : merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+226 lines, -32 lines) Patch
M chrome/browser/importer/ie_importer.h View 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/importer/ie_importer.cc View 1 8 9 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/importer/ie_importer_browsertest_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +6 lines, -32 lines 0 comments Download
A chrome/browser/importer/ie_importer_test_registry_overrider_win.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +69 lines, -0 lines 0 comments Download
A chrome/browser/importer/ie_importer_test_registry_overrider_win.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +137 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
gab
Robert/Miranda PTAL, this is the cleanest way me and Robert could think of to flag ...
7 years, 8 months ago (2013-04-26 17:30:10 UTC) #1
robertshield
https://codereview.chromium.org/14143010/diff/3001/chrome/browser/importer/ie_importer.cc File chrome/browser/importer/ie_importer.cc (right): https://codereview.chromium.org/14143010/diff/3001/chrome/browser/importer/ie_importer.cc#newcode425 chrome/browser/importer/ie_importer.cc:425: if (!test_registry_overrider_.StartRegistryOverrideIfNeeded()) { This doesn't disambiguate between the case ...
7 years, 8 months ago (2013-04-26 19:20:53 UTC) #2
gab
Sir, PTAL, I changed the interface and the logic quite a bit. The previous patchset ...
7 years, 7 months ago (2013-04-29 02:00:43 UTC) #3
robertshield
A few comments, also could you explain again why the overrider class needs to be ...
7 years, 7 months ago (2013-04-30 03:15:42 UTC) #4
Miranda Callahan
Hmm -- unfortunately, my experience with the importer code was all on the Mac side; ...
7 years, 7 months ago (2013-04-30 18:46:39 UTC) #5
gab
On 2013/04/30 18:46:39, Miranda Callahan wrote: > Hmm -- unfortunately, my experience with the importer ...
7 years, 7 months ago (2013-04-30 19:22:14 UTC) #6
gab
PTAL, the reason this needs to be thread-safe with the current code is that the ...
7 years, 7 months ago (2013-04-30 21:44:52 UTC) #7
robertshield
ugh, my train is pulling in but I want to think on the thread safety ...
7 years, 7 months ago (2013-04-30 22:04:04 UTC) #8
gab
https://codereview.chromium.org/14143010/diff/14001/chrome/browser/importer/ie_importer_test_registry_overrider_win.cc File chrome/browser/importer/ie_importer_test_registry_overrider_win.cc (right): https://codereview.chromium.org/14143010/diff/14001/chrome/browser/importer/ie_importer_test_registry_overrider_win.cc#newcode35 chrome/browser/importer/ie_importer_test_registry_overrider_win.cc:35: if (in_process_override_started_by_this_) { On 2013/04/30 22:04:05, robertshield wrote: > ...
7 years, 7 months ago (2013-04-30 22:56:47 UTC) #9
gab
Sir, PTAL. Since last replies (from patch set 6), I: - Made this class fully ...
7 years, 7 months ago (2013-05-03 13:20:55 UTC) #10
robertshield
Looking good, just a few more questions about how RegOverridePredefKey could be getting reset by ...
7 years, 7 months ago (2013-05-03 13:52:37 UTC) #11
gab
PTAL, thanks! https://codereview.chromium.org/14143010/diff/80001/chrome/browser/importer/ie_importer_test_registry_overrider_win.cc File chrome/browser/importer/ie_importer_test_registry_overrider_win.cc (right): https://codereview.chromium.org/14143010/diff/80001/chrome/browser/importer/ie_importer_test_registry_overrider_win.cc#newcode91 chrome/browser/importer/ie_importer_test_registry_overrider_win.cc:91: if (!GetSubKeyFromEnvironment(&subkey)) On 2013/05/03 13:52:37, robertshield wrote: ...
7 years, 7 months ago (2013-05-03 14:49:10 UTC) #12
robertshield
lgtm
7 years, 7 months ago (2013-05-03 17:27:27 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gab@chromium.org/14143010/96001
7 years, 7 months ago (2013-05-03 19:46:58 UTC) #14
commit-bot: I haz the power
7 years, 7 months ago (2013-05-04 00:06:08 UTC) #15
Message was sent while issue was closed.
Change committed as 198256

Powered by Google App Engine
This is Rietveld 408576698