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

Side by Side Diff: chrome/browser/profiles/profile.h

Issue 564453003: Access to Chrome via the System Tray should go through the User Manager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Estade comments Created 6 years, 3 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
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 // This class gathers state related to a single user profile. 5 // This class gathers state related to a single user profile.
6 6
7 #ifndef CHROME_BROWSER_PROFILES_PROFILE_H_ 7 #ifndef CHROME_BROWSER_PROFILES_PROFILE_H_
8 #define CHROME_BROWSER_PROFILES_PROFILE_H_ 8 #define CHROME_BROWSER_PROFILES_PROFILE_H_
9 9
10 #include <string> 10 #include <string>
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 // Profile services were not created due to a remote error (e.g., network 101 // Profile services were not created due to a remote error (e.g., network
102 // down during limited-user registration). 102 // down during limited-user registration).
103 CREATE_STATUS_REMOTE_FAIL, 103 CREATE_STATUS_REMOTE_FAIL,
104 // Profile created but before initializing extensions and promo resources. 104 // Profile created but before initializing extensions and promo resources.
105 CREATE_STATUS_CREATED, 105 CREATE_STATUS_CREATED,
106 // Profile is created, extensions and promo resources are initialized. 106 // Profile is created, extensions and promo resources are initialized.
107 CREATE_STATUS_INITIALIZED, 107 CREATE_STATUS_INITIALIZED,
108 // Profile creation (supervised-user registration, generally) was canceled 108 // Profile creation (supervised-user registration, generally) was canceled
109 // by the user. 109 // by the user.
110 CREATE_STATUS_CANCELED, 110 CREATE_STATUS_CANCELED,
111 // Profile already existed and is completely initialized.
112 CREATE_STATUS_ALREADY_CREATED,
noms (inactive) 2014/09/11 19:05:41 Hmm, why can't you reuse CREATE_STATUS_INITIALIZED
Mike Lerman 2014/09/11 20:51:51 okay.
111 MAX_CREATE_STATUS // For histogram display. 113 MAX_CREATE_STATUS // For histogram display.
112 }; 114 };
113 115
114 enum CreateMode { 116 enum CreateMode {
115 CREATE_MODE_SYNCHRONOUS, 117 CREATE_MODE_SYNCHRONOUS,
116 CREATE_MODE_ASYNCHRONOUS 118 CREATE_MODE_ASYNCHRONOUS
117 }; 119 };
118 120
119 enum ExitType { 121 enum ExitType {
120 // A normal shutdown. The user clicked exit/closed last window of the 122 // A normal shutdown. The user clicked exit/closed last window of the
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
412 struct hash<Profile*> { 414 struct hash<Profile*> {
413 std::size_t operator()(Profile* const& p) const { 415 std::size_t operator()(Profile* const& p) const {
414 return reinterpret_cast<std::size_t>(p); 416 return reinterpret_cast<std::size_t>(p);
415 } 417 }
416 }; 418 };
417 419
418 } // namespace BASE_HASH_NAMESPACE 420 } // namespace BASE_HASH_NAMESPACE
419 #endif 421 #endif
420 422
421 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ 423 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698