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

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

Issue 2712883005: Sign out profile when local_state file has been changed. (Closed)
Patch Set: Merge from master Created 3 years, 9 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 #ifndef CHROME_BROWSER_PROFILES_PROFILE_INFO_CACHE_H_ 5 #ifndef CHROME_BROWSER_PROFILES_PROFILE_INFO_CACHE_H_
6 #define CHROME_BROWSER_PROFILES_PROFILE_INFO_CACHE_H_ 6 #define CHROME_BROWSER_PROFILES_PROFILE_INFO_CACHE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 void SetProfileIsUsingDefaultNameAtIndex(size_t index, bool value); 145 void SetProfileIsUsingDefaultNameAtIndex(size_t index, bool value);
146 void SetProfileIsUsingDefaultAvatarAtIndex(size_t index, bool value); 146 void SetProfileIsUsingDefaultAvatarAtIndex(size_t index, bool value);
147 void SetProfileIsAuthErrorAtIndex(size_t index, bool value); 147 void SetProfileIsAuthErrorAtIndex(size_t index, bool value);
148 148
149 // Statistics 149 // Statistics
150 void SetStatsBrowsingHistoryOfProfileAtIndex(size_t index, int value); 150 void SetStatsBrowsingHistoryOfProfileAtIndex(size_t index, int value);
151 void SetStatsPasswordsOfProfileAtIndex(size_t index, int value); 151 void SetStatsPasswordsOfProfileAtIndex(size_t index, int value);
152 void SetStatsBookmarksOfProfileAtIndex(size_t index, int value); 152 void SetStatsBookmarksOfProfileAtIndex(size_t index, int value);
153 void SetStatsSettingsOfProfileAtIndex(size_t index, int value); 153 void SetStatsSettingsOfProfileAtIndex(size_t index, int value);
154 154
155 // Notify IsSignedInRequired to all observer
156 void NotifyIsSigninRequiredChanged(const base::FilePath& profile_path);
157
155 const base::FilePath& GetUserDataDir() const; 158 const base::FilePath& GetUserDataDir() const;
156 159
157 // Register cache related preferences in Local State. 160 // Register cache related preferences in Local State.
158 static void RegisterPrefs(PrefRegistrySimple* registry); 161 static void RegisterPrefs(PrefRegistrySimple* registry);
159 162
160 // Checks whether the high res avatar at index |icon_index| exists, and 163 // Checks whether the high res avatar at index |icon_index| exists, and
161 // if it does not, calls |DownloadHighResAvatar|. 164 // if it does not, calls |DownloadHighResAvatar|.
162 void DownloadHighResAvatarIfNeeded(size_t icon_index, 165 void DownloadHighResAvatarIfNeeded(size_t icon_index,
163 const base::FilePath& profile_path); 166 const base::FilePath& profile_path);
164 167
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 avatar_images_downloads_in_progress_; 264 avatar_images_downloads_in_progress_;
262 265
263 // Determines of the ProfileAvatarDownloader should be created and executed 266 // Determines of the ProfileAvatarDownloader should be created and executed
264 // or not. Only set to true for tests. 267 // or not. Only set to true for tests.
265 bool disable_avatar_download_for_testing_; 268 bool disable_avatar_download_for_testing_;
266 269
267 DISALLOW_COPY_AND_ASSIGN(ProfileInfoCache); 270 DISALLOW_COPY_AND_ASSIGN(ProfileInfoCache);
268 }; 271 };
269 272
270 #endif // CHROME_BROWSER_PROFILES_PROFILE_INFO_CACHE_H_ 273 #endif // CHROME_BROWSER_PROFILES_PROFILE_INFO_CACHE_H_
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_attributes_storage_unittest.cc ('k') | chrome/browser/profiles/profile_info_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698