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

Unified Diff: chrome/browser/process_singleton_linux.cc

Issue 8854001: Honor profile directory when creating new window in existing browser (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address review comments Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/process_singleton_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/process_singleton_linux.cc
diff --git a/chrome/browser/process_singleton_linux.cc b/chrome/browser/process_singleton_linux.cc
index 34feef1901f0b0eff0edd7ed1d4b2c606564e96b..d9156370e20b1188068b012437cbf5428b3372f4 100644
--- a/chrome/browser/process_singleton_linux.cc
+++ b/chrome/browser/process_singleton_linux.cc
@@ -641,15 +641,6 @@ void ProcessSingleton::LinuxWatcher::HandleMessage(
PrefService* prefs = g_browser_process->local_state();
DCHECK(prefs);
- Profile* profile = ProfileManager::GetLastUsedProfile();
-
- if (!profile) {
- // We should only be able to get here if the profile already exists and
- // has been created.
- NOTREACHED();
- return;
- }
-
// Ignore the request if the process was passed the --product-version flag.
// Normally we wouldn't get here if that flag had been passed, but it can
// happen if it is passed to an older version of chrome. Since newer versions
@@ -661,10 +652,8 @@ void ProcessSingleton::LinuxWatcher::HandleMessage(
} else {
// Run the browser startup sequence again, with the command line of the
// signalling process.
- FilePath current_dir_file_path(current_dir);
- BrowserInit::ProcessCommandLine(parsed_command_line, current_dir_file_path,
- false /* not process startup */, profile,
- NULL);
+ BrowserInit::ProcessCommandLineAlreadyRunning(
+ parsed_command_line, FilePath(current_dir));
}
// Send back "ACK" message to prevent the client process from starting up.
« no previous file with comments | « no previous file | chrome/browser/process_singleton_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698