Index: chrome/browser/protector/protector.h |
diff --git a/chrome/browser/protector/protector.h b/chrome/browser/protector/protector.h |
index 85ac9ae7919b2acc9ae03926ac8d5a0236adbb0e..868458db78d3505971daafd2255144a11e0e392d 100644 |
--- a/chrome/browser/protector/protector.h |
+++ b/chrome/browser/protector/protector.h |
@@ -31,14 +31,16 @@ class Protector : public SettingsChangeGlobalErrorDelegate { |
// bubble for. |
void OpenTab(const GURL& url); |
- // Returns TemplateURLService for the profile we've shown error bubble |
- // for. |
+ // Returns TemplateURLService for the profile we've shown error bubble for. |
TemplateURLService* GetTemplateURLService(); |
- // Shows global error about the specified change. Ownership of the change |
- // is passed to the GlobalError object. |
+ // Shows global error about the specified change. Owns |change|. |
void ShowChange(BaseSettingChange* change); |
+ // Silently discards any change previously shown (without calling Discard), |
+ // removes global error and deletes itself. |
+ void DismissChange(); |
+ |
// SettingsChangeGlobalErrorDelegate implementation. |
virtual void OnApplyChange() OVERRIDE; |
virtual void OnDiscardChange() OVERRIDE; |
@@ -57,9 +59,12 @@ class Protector : public SettingsChangeGlobalErrorDelegate { |
void InitAndShowChange(BaseSettingChange* change); |
// Pointer to error bubble controller. Indicates if we're showing change |
- // notification to user. Owns itself. |
+ // notification to user. |
scoped_ptr<SettingsChangeGlobalError> error_; |
+ // Setting change which we're showing. |
+ scoped_ptr<BaseSettingChange> change_; |
+ |
// Profile which settings we are protecting. |
Profile* profile_; |