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

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

Issue 11740018: Cleanup: Remove more unneeded browser_thread.h includes. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix cros Created 7 years, 11 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "chrome/browser/chromeos/login/user_manager_impl.h" 7 #include "chrome/browser/chromeos/login/user_manager_impl.h"
8 #include "content/public/browser/browser_thread.h"
9 8
10 namespace chromeos { 9 namespace chromeos {
11 10
12 // static 11 // static
13 const char UserManager::kStubUser[] = "stub-user@example.com"; 12 const char UserManager::kStubUser[] = "stub-user@example.com";
14 13
15 // Class that is holds pointer to UserManager instance. 14 // Class that is holds pointer to UserManager instance.
16 // One could set UserManager mock instance through it (see UserManager::Set). 15 // One could set UserManager mock instance through it (see UserManager::Set).
17 class UserManagerImplWrapper { 16 class UserManagerImplWrapper {
18 public: 17 public:
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 UserManager* UserManager::Set(UserManager* mock) { 59 UserManager* UserManager::Set(UserManager* mock) {
61 UserManager* old_manager = UserManagerImplWrapper::GetInstance()->release(); 60 UserManager* old_manager = UserManagerImplWrapper::GetInstance()->release();
62 UserManagerImplWrapper::GetInstance()->reset(mock); 61 UserManagerImplWrapper::GetInstance()->reset(mock);
63 return old_manager; 62 return old_manager;
64 } 63 }
65 64
66 UserManager::~UserManager() { 65 UserManager::~UserManager() {
67 } 66 }
68 67
69 } // namespace chromeos 68 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/mock_url_fetchers.cc ('k') | chrome/browser/chromeos/net/network_portal_detector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698