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

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

Issue 8586007: Made OAuth token verification and user seession cookie retrieval process robust on transient netw... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/user_manager.h" 5 #include "chrome/browser/chromeos/login/user_manager.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/file_path.h" 10 #include "base/file_path.h"
(...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after
497 observer_list_, 497 observer_list_,
498 LocalStateChanged(this)); 498 LocalStateChanged(this));
499 } 499 }
500 500
501 // Protected constructor and destructor. 501 // Protected constructor and destructor.
502 UserManager::UserManager() 502 UserManager::UserManager()
503 : ALLOW_THIS_IN_INITIALIZER_LIST(image_loader_(new UserImageLoader)), 503 : ALLOW_THIS_IN_INITIALIZER_LIST(image_loader_(new UserImageLoader)),
504 guest_user_(kGuestUser), 504 guest_user_(kGuestUser),
505 stub_user_(kStubUser), 505 stub_user_(kStubUser),
506 logged_in_user_(NULL), 506 logged_in_user_(NULL),
507 offline_login_(false),
508 current_user_is_owner_(false), 507 current_user_is_owner_(false),
509 current_user_is_new_(false), 508 current_user_is_new_(false),
510 user_is_logged_in_(false), 509 user_is_logged_in_(false),
511 last_image_set_async_(false), 510 last_image_set_async_(false),
512 downloaded_profile_image_data_url_(chrome::kAboutBlankURL) { 511 downloaded_profile_image_data_url_(chrome::kAboutBlankURL) {
513 // Use stub as the logged-in user for test paths without login. 512 // Use stub as the logged-in user for test paths without login.
514 if (!system::runtime_environment::IsRunningOnChromeOS()) 513 if (!system::runtime_environment::IsRunningOnChromeOS())
515 StubUserLoggedIn(); 514 StubUserLoggedIn();
516 registrar_.Add(this, chrome::NOTIFICATION_OWNER_KEY_FETCH_ATTEMPT_SUCCEEDED, 515 registrar_.Add(this, chrome::NOTIFICATION_OWNER_KEY_FETCH_ATTEMPT_SUCCEEDED,
517 content::NotificationService::AllSources()); 516 content::NotificationService::AllSources());
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
854 853
855 User* UserManager::CreateUser(const std::string& email) const { 854 User* UserManager::CreateUser(const std::string& email) const {
856 User* user = new User(email); 855 User* user = new User(email);
857 user->set_oauth_token_status(GetUserOAuthStatus(email)); 856 user->set_oauth_token_status(GetUserOAuthStatus(email));
858 // Used to determine whether user's display name is unique. 857 // Used to determine whether user's display name is unique.
859 ++display_name_count_[user->GetDisplayName()]; 858 ++display_name_count_[user->GetDisplayName()];
860 return user; 859 return user;
861 } 860 }
862 861
863 } // namespace chromeos 862 } // namespace chromeos
OLDNEW
« chrome/browser/chromeos/login/login_utils.cc ('K') | « chrome/browser/chromeos/login/user_manager.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698