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

Side by Side Diff: chrome/browser/ui/webui/profile_info_watcher.h

Issue 1658793002: Update chrome for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_UI_WEBUI_PROFILE_INFO_WATCHER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_PROFILE_INFO_WATCHER_H_
6 #define CHROME_BROWSER_UI_WEBUI_PROFILE_INFO_WATCHER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_PROFILE_INFO_WATCHER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/prefs/pref_member.h"
13 #include "chrome/browser/profiles/profile_info_cache_observer.h" 12 #include "chrome/browser/profiles/profile_info_cache_observer.h"
13 #include "components/prefs/pref_member.h"
14 14
15 class Profile; 15 class Profile;
16 class SigninManagerBase; 16 class SigninManagerBase;
17 17
18 // Watches profiles for changes in their cached info (e.g. the authenticated 18 // Watches profiles for changes in their cached info (e.g. the authenticated
19 // username changes). 19 // username changes).
20 class ProfileInfoWatcher : public ProfileInfoCacheObserver { 20 class ProfileInfoWatcher : public ProfileInfoCacheObserver {
21 public: 21 public:
22 ProfileInfoWatcher(Profile* profile, const base::Closure& callback); 22 ProfileInfoWatcher(Profile* profile, const base::Closure& callback);
23 ~ProfileInfoWatcher() override; 23 ~ProfileInfoWatcher() override;
(...skipping 17 matching lines...) Expand all
41 41
42 // Called when the authenticated username changes. 42 // Called when the authenticated username changes.
43 base::Closure callback_; 43 base::Closure callback_;
44 44
45 BooleanPrefMember signin_allowed_pref_; 45 BooleanPrefMember signin_allowed_pref_;
46 46
47 DISALLOW_COPY_AND_ASSIGN(ProfileInfoWatcher); 47 DISALLOW_COPY_AND_ASSIGN(ProfileInfoWatcher);
48 }; 48 };
49 49
50 #endif // CHROME_BROWSER_UI_WEBUI_PROFILE_INFO_WATCHER_H_ 50 #endif // CHROME_BROWSER_UI_WEBUI_PROFILE_INFO_WATCHER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/print_preview/sticky_settings.cc ('k') | chrome/browser/ui/webui/profile_info_watcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698