DescriptionAvoid loading the last used browser profile in app_controller_mac when it's not needed.
Currently -[AppController applicationDidFinishLaunching:] and
-[AppController windowLayeringDidChange:] can trigger a synchronous load
of the last used _browser_ profile, even when no browsers are being
opened, and that profile is not required. This causes delays when the
app launcher or app shims are launched for a profile that doesn't match
the last used browser profile, because both profiles must be loaded and
initialized.
This change moves ChromeBrowserMain's GetStartupProfilePath() from an
anonymous namespace to startup_browser_creator.h so that AppController
can share the logic that determines the profile loaded when the browser
process starts up.
The shim process is tweaked slightly to ensure it passes
`--show-app-list` for the app launcher shim, similar to the Windows app
launcher. This allows a newly created browser process to determine that
the first thing it will be doing is showing a launcher.
BUG=178260, 262848
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=245199
Patch Set 1 #Patch Set 2 : Still need the IPC for now #Patch Set 3 : need FPL #
Total comments: 2
Patch Set 4 : Rebase for comment-string merge conflict from r243939 #
Total comments: 6
Patch Set 5 : Clearer comments #Patch Set 6 : Fix android link error (-> kProfileLastUsed setter is #ifdefed out in profile_manager.cc) #
Messages
Total messages: 12 (0 generated)
|