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

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

Issue 1962463002: Revert of GetAccountIdFromProfile() should not return an empty account id if a valid profile is provided. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
« no previous file with comments | « no previous file | chrome/browser/signin/signin_error_notifier_ash_unittest.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 <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 15 matching lines...) Expand all
26 namespace extensions { 26 namespace extensions {
27 class ExtensionGarbageCollectorChromeOSUnitTest; 27 class ExtensionGarbageCollectorChromeOSUnitTest;
28 } 28 }
29 29
30 namespace ash { 30 namespace ash {
31 namespace test { 31 namespace test {
32 class MultiUserWindowManagerChromeOSTest; 32 class MultiUserWindowManagerChromeOSTest;
33 } // namespace test 33 } // namespace test
34 } // namespace ash 34 } // namespace ash
35 35
36 namespace test {
37 class BrowserFinderChromeOSTest;
38 } // namespace test
39
40 namespace chromeos { 36 namespace chromeos {
41 37
42 class FileFlusher; 38 class FileFlusher;
43 39
44 // This helper class is used on Chrome OS to keep track of currently 40 // This helper class is used on Chrome OS to keep track of currently
45 // active user profile. 41 // active user profile.
46 // Whenever active user is changed (either add another user into session or 42 // Whenever active user is changed (either add another user into session or
47 // switch between users), ActiveUserHashChanged() will be called thus 43 // switch between users), ActiveUserHashChanged() will be called thus
48 // internal state |active_user_id_hash_| will be updated. 44 // internal state |active_user_id_hash_| will be updated.
49 // Typical use cases for using this class: 45 // Typical use cases for using this class:
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 friend class FakeChromeUserManager; 148 friend class FakeChromeUserManager;
153 friend class KioskTest; 149 friend class KioskTest;
154 friend class MockUserManager; 150 friend class MockUserManager;
155 friend class MultiProfileUserControllerTest; 151 friend class MultiProfileUserControllerTest;
156 friend class PrinterDetectorAppSearchEnabledTest; 152 friend class PrinterDetectorAppSearchEnabledTest;
157 friend class ProfileHelperTest; 153 friend class ProfileHelperTest;
158 friend class ProfileListChromeOSTest; 154 friend class ProfileListChromeOSTest;
159 friend class SessionStateDelegateChromeOSTest; 155 friend class SessionStateDelegateChromeOSTest;
160 friend class SystemTrayDelegateChromeOSTest; 156 friend class SystemTrayDelegateChromeOSTest;
161 friend class ash::test::MultiUserWindowManagerChromeOSTest; 157 friend class ash::test::MultiUserWindowManagerChromeOSTest;
162 friend class ::test::BrowserFinderChromeOSTest;
163 158
164 // Called when signin profile is cleared. 159 // Called when signin profile is cleared.
165 void OnSigninProfileCleared(); 160 void OnSigninProfileCleared();
166 161
167 // BrowsingDataRemover::Observer implementation: 162 // BrowsingDataRemover::Observer implementation:
168 void OnBrowsingDataRemoverDone() override; 163 void OnBrowsingDataRemoverDone() override;
169 164
170 // OAuth2LoginManager::Observer overrides. 165 // OAuth2LoginManager::Observer overrides.
171 void OnSessionRestoreStateChanged( 166 void OnSessionRestoreStateChanged(
172 Profile* user_profile, 167 Profile* user_profile,
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 std::unique_ptr<FileFlusher> profile_flusher_; 218 std::unique_ptr<FileFlusher> profile_flusher_;
224 219
225 base::WeakPtrFactory<ProfileHelper> weak_factory_; 220 base::WeakPtrFactory<ProfileHelper> weak_factory_;
226 221
227 DISALLOW_COPY_AND_ASSIGN(ProfileHelper); 222 DISALLOW_COPY_AND_ASSIGN(ProfileHelper);
228 }; 223 };
229 224
230 } // namespace chromeos 225 } // namespace chromeos
231 226
232 #endif // CHROME_BROWSER_CHROMEOS_PROFILES_PROFILE_HELPER_H_ 227 #endif // CHROME_BROWSER_CHROMEOS_PROFILES_PROFILE_HELPER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/signin/signin_error_notifier_ash_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698