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

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

Issue 23967015: Use multi-profile mount point by default after browser crash and in Guest session. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comment Created 7 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 | 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 // signin Profile. 56 // signin Profile.
57 static bool IsSigninProfile(Profile* profile); 57 static bool IsSigninProfile(Profile* profile);
58 58
59 // Initialize a bunch of services that are tied to a browser profile. 59 // Initialize a bunch of services that are tied to a browser profile.
60 // TODO(dzhioev): Investigate whether or not this method is needed. 60 // TODO(dzhioev): Investigate whether or not this method is needed.
61 void ProfileStartup(Profile* profile, bool process_startup); 61 void ProfileStartup(Profile* profile, bool process_startup);
62 62
63 // Returns active user profile dir in a format [u-$hash]. 63 // Returns active user profile dir in a format [u-$hash].
64 base::FilePath GetActiveUserProfileDir(); 64 base::FilePath GetActiveUserProfileDir();
65 65
66 // Returns user profile dir in a format [u-user_id_hash].
67 base::FilePath GetUserProfileDir(const std::string& user_id_hash);
Dmitry Polukhin 2013/09/18 15:46:06 I made similar function UserManager::GetUserProfil
Nikita (slow) 2013/09/18 16:22:55 I don't see this function in user_manager.h / user
Dmitry Polukhin 2013/09/18 16:48:43 As we discussed offline UserManagerImpl::GetUserPr
Nikita (slow) 2013/09/18 18:04:37 Done.
68
66 // Should called once after UserManager instance has been created. 69 // Should called once after UserManager instance has been created.
67 void Initialize(); 70 void Initialize();
68 71
69 // Returns hash for active user ID which is used to identify that user profile 72 // Returns hash for active user ID which is used to identify that user profile
70 // on Chrome OS. 73 // on Chrome OS.
71 std::string active_user_id_hash() { return active_user_id_hash_; } 74 std::string active_user_id_hash() { return active_user_id_hash_; }
72 75
73 // Clears site data (cookies, history, etc) for signin profile. 76 // Clears site data (cookies, history, etc) for signin profile.
74 // Callback can be empty. Not thread-safe. 77 // Callback can be empty. Not thread-safe.
75 void ClearSigninProfile(const base::Closure& on_clear_callback); 78 void ClearSigninProfile(const base::Closure& on_clear_callback);
(...skipping 20 matching lines...) Expand all
96 99
97 // List of callbacks called after signin profile clearance. 100 // List of callbacks called after signin profile clearance.
98 std::vector<base::Closure> on_clear_callbacks_; 101 std::vector<base::Closure> on_clear_callbacks_;
99 102
100 DISALLOW_COPY_AND_ASSIGN(ProfileHelper); 103 DISALLOW_COPY_AND_ASSIGN(ProfileHelper);
101 }; 104 };
102 105
103 } // namespace chromeos 106 } // namespace chromeos
104 107
105 #endif // CHROME_BROWSER_CHROMEOS_PROFILES_PROFILE_HELPER_H_ 108 #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