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

Side by Side Diff: chrome/browser/chromeos/login/login_utils.cc

Issue 4011001: Convert LOG(INFO) to VLOG(1) - chrome/browser/chromeos/login/.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 2 months 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/chromeos/login/login_utils.h" 5 #include "chrome/browser/chromeos/login/login_utils.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/file_path.h" 8 #include "base/file_path.h"
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/lock.h" 10 #include "base/lock.h"
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 private: 112 private:
113 Lock create_lock_; 113 Lock create_lock_;
114 scoped_ptr<LoginUtils> ptr_; 114 scoped_ptr<LoginUtils> ptr_;
115 115
116 DISALLOW_COPY_AND_ASSIGN(LoginUtilsWrapper); 116 DISALLOW_COPY_AND_ASSIGN(LoginUtilsWrapper);
117 }; 117 };
118 118
119 void LoginUtilsImpl::CompleteLogin(const std::string& username, 119 void LoginUtilsImpl::CompleteLogin(const std::string& username,
120 const GaiaAuthConsumer::ClientLoginResult& credentials) { 120 const GaiaAuthConsumer::ClientLoginResult& credentials) {
121 121
122 LOG(INFO) << "Completing login for " << username; 122 VLOG(1) << "Completing login for " << username;
123 123
124 if (CrosLibrary::Get()->EnsureLoaded()) 124 if (CrosLibrary::Get()->EnsureLoaded())
125 CrosLibrary::Get()->GetLoginLibrary()->StartSession(username, ""); 125 CrosLibrary::Get()->GetLoginLibrary()->StartSession(username, "");
126 126
127 bool first_login = !UserManager::Get()->IsKnownUser(username); 127 bool first_login = !UserManager::Get()->IsKnownUser(username);
128 UserManager::Get()->UserLoggedIn(username); 128 UserManager::Get()->UserLoggedIn(username);
129 129
130 // Now launch the initial browser window. 130 // Now launch the initial browser window.
131 FilePath user_data_dir; 131 FilePath user_data_dir;
132 PathService::Get(chrome::DIR_USER_DATA, &user_data_dir); 132 PathService::Get(chrome::DIR_USER_DATA, &user_data_dir);
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 // Add the UI language to the preferred languages the user first logs in. 220 // Add the UI language to the preferred languages the user first logs in.
221 std::string preferred_languages(locale); 221 std::string preferred_languages(locale);
222 preferred_languages += ","; 222 preferred_languages += ",";
223 preferred_languages += kFallbackInputMethodLocale; 223 preferred_languages += kFallbackInputMethodLocale;
224 language_preferred_languages.SetValue(preferred_languages); 224 language_preferred_languages.SetValue(preferred_languages);
225 } 225 }
226 } 226 }
227 } 227 }
228 228
229 void LoginUtilsImpl::CompleteOffTheRecordLogin(const GURL& start_url) { 229 void LoginUtilsImpl::CompleteOffTheRecordLogin(const GURL& start_url) {
230 LOG(INFO) << "Completing off the record login"; 230 VLOG(1) << "Completing off the record login";
231 231
232 UserManager::Get()->OffTheRecordUserLoggedIn(); 232 UserManager::Get()->OffTheRecordUserLoggedIn();
233 233
234 if (CrosLibrary::Get()->EnsureLoaded()) { 234 if (CrosLibrary::Get()->EnsureLoaded()) {
235 // For guest session we ask session manager to restart Chrome with --bwsi 235 // For guest session we ask session manager to restart Chrome with --bwsi
236 // flag. We keep only some of the arguments of this process. 236 // flag. We keep only some of the arguments of this process.
237 static const char* kForwardSwitches[] = { 237 static const char* kForwardSwitches[] = {
238 switches::kLoggingLevel, 238 switches::kLoggingLevel,
239 switches::kEnableLogging, 239 switches::kEnableLogging,
240 switches::kUserDataDir, 240 switches::kUserDataDir,
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 289
290 void LoginUtils::DoBrowserLaunch(Profile* profile) { 290 void LoginUtils::DoBrowserLaunch(Profile* profile) {
291 // Browser launch was disabled due to some post login screen. 291 // Browser launch was disabled due to some post login screen.
292 if (!LoginUtils::Get()->IsBrowserLaunchEnabled()) 292 if (!LoginUtils::Get()->IsBrowserLaunchEnabled())
293 return; 293 return;
294 294
295 // Update command line in case loose values were added. 295 // Update command line in case loose values were added.
296 CommandLine::ForCurrentProcess()->InitFromArgv( 296 CommandLine::ForCurrentProcess()->InitFromArgv(
297 CommandLine::ForCurrentProcess()->argv()); 297 CommandLine::ForCurrentProcess()->argv());
298 298
299 LOG(INFO) << "Launching browser..."; 299 VLOG(1) << "Launching browser...";
300 BrowserInit browser_init; 300 BrowserInit browser_init;
301 int return_code; 301 int return_code;
302 browser_init.LaunchBrowser(*CommandLine::ForCurrentProcess(), 302 browser_init.LaunchBrowser(*CommandLine::ForCurrentProcess(),
303 profile, 303 profile,
304 FilePath(), 304 FilePath(),
305 true, 305 true,
306 &return_code); 306 &return_code);
307 } 307 }
308 308
309 } // namespace chromeos 309 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/login_screen_browsertest.cc ('k') | chrome/browser/chromeos/login/mock_authenticator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698