summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/browser/chromeos/login/utils.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/browser/chromeos/login/utils.cc b/chrome/browser/chromeos/login/utils.cc
index 54f7ee1..9417c41 100644
--- a/chrome/browser/chromeos/login/utils.cc
+++ b/chrome/browser/chromeos/login/utils.cc
@@ -15,6 +15,7 @@
#include "chrome/browser/profile.h"
#include "chrome/browser/profile_manager.h"
#include "chrome/common/chrome_paths.h"
+#include "chrome/common/chrome_switches.h"
#include "chrome/common/notification_service.h"
#include "views/widget/widget_gtk.h"
@@ -45,7 +46,8 @@ void CompleteLogin(const std::string& username) {
Profile* profile = profile_manager->GetDefaultProfile(user_data_dir);
int return_code;
- ExternalCookieHandler::GetCookies(command_line, profile);
+ if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kInChromeAuth))
+ ExternalCookieHandler::GetCookies(command_line, profile);
browser_init.LaunchBrowser(command_line, profile, std::wstring(), true,
&return_code);
}