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

Side by Side Diff: chrome/browser/chromeos/profiles/profile_helper.h

Issue 144983002: Fixed chrome://settings/accounts availability for MP. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed proxy_settings_ui. Created 6 years, 10 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/profiles/profile_helper.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 #ifndef CHROME_BROWSER_CHROMEOS_PROFILES_PROFILE_HELPER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_PROFILES_PROFILE_HELPER_H_
6 #define CHROME_BROWSER_CHROMEOS_PROFILES_PROFILE_HELPER_H_ 6 #define CHROME_BROWSER_CHROMEOS_PROFILES_PROFILE_HELPER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 static std::string GetUserIdHashFromProfile(Profile* profile); 55 static std::string GetUserIdHashFromProfile(Profile* profile);
56 56
57 // Returns user profile dir in a format [u-user_id_hash]. 57 // Returns user profile dir in a format [u-user_id_hash].
58 static base::FilePath GetUserProfileDir(const std::string& user_id_hash); 58 static base::FilePath GetUserProfileDir(const std::string& user_id_hash);
59 59
60 // Returns true if |profile| is the signin Profile. This can be used during 60 // Returns true if |profile| is the signin Profile. This can be used during
61 // construction of the signin Profile to determine if that Profile is the 61 // construction of the signin Profile to determine if that Profile is the
62 // signin Profile. 62 // signin Profile.
63 static bool IsSigninProfile(Profile* profile); 63 static bool IsSigninProfile(Profile* profile);
64 64
65 // Returns true when |profile| corresponds to owner's profile.
66 static bool IsOwnerProfile(Profile* profile);
67
65 // Initialize a bunch of services that are tied to a browser profile. 68 // Initialize a bunch of services that are tied to a browser profile.
66 // TODO(dzhioev): Investigate whether or not this method is needed. 69 // TODO(dzhioev): Investigate whether or not this method is needed.
67 void ProfileStartup(Profile* profile, bool process_startup); 70 void ProfileStartup(Profile* profile, bool process_startup);
68 71
69 // Returns active user profile dir in a format [u-$hash]. 72 // Returns active user profile dir in a format [u-$hash].
70 base::FilePath GetActiveUserProfileDir(); 73 base::FilePath GetActiveUserProfileDir();
71 74
72 // Should called once after UserManager instance has been created. 75 // Should called once after UserManager instance has been created.
73 void Initialize(); 76 void Initialize();
74 77
(...skipping 28 matching lines...) Expand all
103 106
104 // List of callbacks called after signin profile clearance. 107 // List of callbacks called after signin profile clearance.
105 std::vector<base::Closure> on_clear_callbacks_; 108 std::vector<base::Closure> on_clear_callbacks_;
106 109
107 DISALLOW_COPY_AND_ASSIGN(ProfileHelper); 110 DISALLOW_COPY_AND_ASSIGN(ProfileHelper);
108 }; 111 };
109 112
110 } // namespace chromeos 113 } // namespace chromeos
111 114
112 #endif // CHROME_BROWSER_CHROMEOS_PROFILES_PROFILE_HELPER_H_ 115 #endif // CHROME_BROWSER_CHROMEOS_PROFILES_PROFILE_HELPER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/profiles/profile_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698