diff options
author | tengs@chromium.org <tengs@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-25 00:13:15 +0000 |
---|---|---|
committer | tengs@chromium.org <tengs@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-25 00:13:15 +0000 |
commit | cc5110ade0488b8c10fbe47040ecc5ede0b14212 (patch) | |
tree | 778557cc0ad7216f6dc1aff17faa0213979883bc /chrome/browser/chrome_browser_main.cc | |
parent | 4e1272f40f7ca5832078d9d8ed4b5c875bfcb774 (diff) | |
download | chromium_src-cc5110ade0488b8c10fbe47040ecc5ede0b14212.zip chromium_src-cc5110ade0488b8c10fbe47040ecc5ede0b14212.tar.gz chromium_src-cc5110ade0488b8c10fbe47040ecc5ede0b14212.tar.bz2 |
Remove reference to profile in devtools remote debugging initialization.
Use GetLastUsedProfile instead, so we can get the user profile after
logging in on CrOS.
BUG=242354
TEST=run_tests on CrOS
Review URL: https://chromiumcodereview.appspot.com/15305014
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@202240 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chrome_browser_main.cc')
-rw-r--r-- | chrome/browser/chrome_browser_main.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc index 04149e7..e341805 100644 --- a/chrome/browser/chrome_browser_main.cc +++ b/chrome/browser/chrome_browser_main.cc @@ -471,8 +471,7 @@ bool ProcessSingletonNotificationCallback( return true; } -void LaunchDevToolsHandlerIfNeeded(Profile* profile, - const CommandLine& command_line) { +void LaunchDevToolsHandlerIfNeeded(const CommandLine& command_line) { if (command_line.HasSwitch(::switches::kRemoteDebuggingPort)) { std::string port_str = command_line.GetSwitchValueASCII(::switches::kRemoteDebuggingPort); @@ -484,7 +483,6 @@ void LaunchDevToolsHandlerIfNeeded(Profile* profile, ::switches::kRemoteDebuggingFrontend); } g_browser_process->CreateDevToolsHttpProtocolHandler( - profile, chrome::HOST_DESKTOP_TYPE_NATIVE, "127.0.0.1", port, @@ -1037,7 +1035,7 @@ void ChromeBrowserMainParts::PreProfileInit() { void ChromeBrowserMainParts::PostProfileInit() { TRACE_EVENT0("startup", "ChromeBrowserMainParts::PostProfileInit"); - LaunchDevToolsHandlerIfNeeded(profile(), parsed_command_line()); + LaunchDevToolsHandlerIfNeeded(parsed_command_line()); for (size_t i = 0; i < chrome_extra_parts_.size(); ++i) chrome_extra_parts_[i]->PostProfileInit(); } |