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

Side by Side Diff: chrome/browser/managed_prefs_banner_base.h

Issue 2905003: Implement support for disabling sync through configuration management. (Closed)
Patch Set: Fix PrefsControllerTest on MAC. Created 10 years, 5 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_MANAGED_PREFS_BANNER_BASE_H_ 5 #ifndef CHROME_BROWSER_MANAGED_PREFS_BANNER_BASE_H_
6 #define CHROME_BROWSER_MANAGED_PREFS_BANNER_BASE_H_ 6 #define CHROME_BROWSER_MANAGED_PREFS_BANNER_BASE_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 22 matching lines...) Expand all
33 33
34 protected: 34 protected:
35 // Update banner visibility. This is called whenever a preference change is 35 // Update banner visibility. This is called whenever a preference change is
36 // observed that may lead to changed visibility of the banner. Subclasses may 36 // observed that may lead to changed visibility of the banner. Subclasses may
37 // override this in order to show/hide the banner. 37 // override this in order to show/hide the banner.
38 virtual void OnUpdateVisibility() { } 38 virtual void OnUpdateVisibility() { }
39 39
40 private: 40 private:
41 PrefService* prefs_; 41 PrefService* prefs_;
42 typedef std::set<std::wstring> PrefSet; 42 typedef std::set<std::wstring> PrefSet;
43 const PrefSet relevant_prefs_; 43 PrefSet relevant_prefs_;
44 44
45 DISALLOW_COPY_AND_ASSIGN(ManagedPrefsBannerBase); 45 DISALLOW_COPY_AND_ASSIGN(ManagedPrefsBannerBase);
46 }; 46 };
47 #endif // CHROME_BROWSER_MANAGED_PREFS_BANNER_BASE_H_ 47 #endif // CHROME_BROWSER_MANAGED_PREFS_BANNER_BASE_H_
OLDNEW
« no previous file with comments | « chrome/browser/gtk/options/content_page_gtk.cc ('k') | chrome/browser/managed_prefs_banner_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698