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

Unified Diff: chrome/browser/protector/base_setting_change.h

Issue 10065016: [protector] Refactoring of --no-protector code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Mock fix Created 8 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/protector/base_setting_change.h
diff --git a/chrome/browser/protector/base_setting_change.h b/chrome/browser/protector/base_setting_change.h
index 05e680bbfa851ecb1c76b69745e72bbebe7db45d..9aa6c84bc695110b116d0bd0c93e0640c93da782 100644
--- a/chrome/browser/protector/base_setting_change.h
+++ b/chrome/browser/protector/base_setting_change.h
@@ -55,6 +55,10 @@ class BaseSettingChange {
// base method.
virtual bool Init(Profile* profile);
+ // Called instead of Init when ProtectorService is disabled. No other members
+ // are called in that case.
+ virtual void InitWhenDisabled(Profile* profile);
sky 2012/04/13 19:25:13 It feels error prone to have the two distinct Init
Ivan Korotkov 2012/04/13 20:16:38 I specifically made them distinct functions becaus
+
// Persists new setting if needed. |browser| is the Browser instance from
// which the user action originates.
virtual void Apply(Browser* browser);

Powered by Google App Engine
This is Rietveld 408576698