summaryrefslogtreecommitdiffstats
path: root/chrome/browser/protector/base_setting_change.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/protector/base_setting_change.h')
-rw-r--r--chrome/browser/protector/base_setting_change.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/chrome/browser/protector/base_setting_change.h b/chrome/browser/protector/base_setting_change.h
index 9a710c4..14d83bd 100644
--- a/chrome/browser/protector/base_setting_change.h
+++ b/chrome/browser/protector/base_setting_change.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -12,6 +12,7 @@
#include "base/basictypes.h"
#include "base/string16.h"
+class Profile;
class TemplateURL;
namespace protector {
@@ -40,9 +41,6 @@ class BaseSettingChange {
// Indicates that user has ignored this change and timeout has passed.
virtual void Timeout();
- // Called before the change is removed from the protector instance.
- virtual void OnBeforeRemoved() = 0;
-
// Returns the resource ID of the badge icon.
virtual int GetBadgeIconID() const = 0;
@@ -65,10 +63,14 @@ class BaseSettingChange {
// Returns text for the button to discard the change with |Discard|.
virtual string16 GetDiscardButtonText() const = 0;
+ // Profile instance we've been associated with by an |Init| call.
+ Profile* profile() { return profile_; }
+
// Protector instance we've been associated with by an |Init| call.
Protector* protector() { return protector_; }
private:
+ Profile* profile_;
Protector* protector_;
DISALLOW_COPY_AND_ASSIGN(BaseSettingChange);