DescriptionIntroduce 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 #
Messages
Total messages: 15 (0 generated)
|