DescriptionOOP import on Windows.
Gets rid of the import process on all platforms -- replaced by a utility process which communicates with a ProfileWriter back in the browser process to write to the profile (this uses the ExternalProcessImporterHost machinery written 2+ years ago by mirandac@ for import on Mac and still the state of the art today).
Gets rid of all issues regarding profile contention and races to profile creation between the browser and import processes on first run (example of issues this has previously caused: http://crbug.com/171475, http://crbug.com/174591, http://crbug.com/180459).
Makes bookmarks file import use the same mechanism on all platforms (this means bookmarks file import is now in-process on Linux which still uses ImporterHost (instead of ExternalProcessImporterHost) -- Linux used to use the import process solely for bookmarks file import -- but the work to switch Linux to ExternalProcessImporterHost should be very minimal after this CL and I intend to do it in a follow-up CL to unify the import flow cross-platform once and for all!).
Do not use the out-of-process import for Google Toolbar (this was already the case prior to this CL).
To make the Google Toolbar importer work out-of-process, we would have to augment the import IPC drastically to support the web auth flow required by this importer (it requires to login to import the google.com/bookmarks favorites).
This, as a side-effect, brings silent bookmarks file import from master_preferences to Mac (long standing issue 48880).
Also fixes issue 231710 (or at least removes the condition causing the bug by making the ImportLockDialog go away on first run on Windows -- as should already have been the case).
Also addresses issue 178083 since the early message loop spinning was caused by ImportSettingsWin which was called too early on Windows (actually resulting in running the full import twice on Windows!) -- via PreCreateThreadsImpl()-->ProcessMasterPreferences()-->SetImportPreferencesAndLaunchImport()-->ImportSettingsWin()... This whole flow is removed in this CL :).
This improves first run speed in a debug build from 4901ms to 1477ms, a 332% improvement!!!! (tested by instrumenting a first run browser test, the delta is between the time the test is constructed and the time the test case is called (which happens after the browser has been initialized and import has occurred)).
This supersedes https://codereview.chromium.org/12463030/ (which won't be committed because this fix is so much better).
BUG=219419, 22142, 56816, 178083, 178051, 48880, 232241, 231710, 223462, 87657, 236225
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=201837
Patch Set 1 : oop import #Patch Set 2 : fix compile #Patch Set 3 : fix FirstRun tests #Patch Set 4 : fix unit_tests #Patch Set 5 : try new test #Patch Set 6 : works!!!! #Patch Set 7 : Importer Browser Tests -- still broken on Firefox #Patch Set 8 : fixed tests! #Patch Set 9 : merge up to r194449 #Patch Set 10 : delete import progress dialog #Patch Set 11 : merge extracted CLs #Patch Set 12 : cleanup #Patch Set 13 : wstring -> string16 #Patch Set 14 : merge more extracted CLs #Patch Set 15 : extract some more CLs #
Total comments: 39
Patch Set 16 : merge up to r196136 + modifications in extracted CLs #
Total comments: 9
Patch Set 17 : fix nits #Patch Set 18 : merge up to r196404 #Patch Set 19 : +comment #Patch Set 20 : Merge in https://codereview.chromium.org/14143010/ #Patch Set 21 : merge up to r196996 #Patch Set 22 : Keep Google Toolbar import in-process. #
Total comments: 2
Patch Set 23 : update comment #Patch Set 24 : merge up to r197907 and try to fix 14143010... #Patch Set 25 : merge https://codereview.chromium.org/14651007/ #Patch Set 26 : merge up to r198447 #Patch Set 27 : merge up to r199501 #Patch Set 28 : merge up to r199992 #Patch Set 29 : merge up to r201293 #Patch Set 30 : rebase on top of https://codereview.chromium.org/15736014/ #Messages
Total messages: 24 (0 generated)
|