Commit 82fc5840 authored by ivankr@chromium.org's avatar ivankr@chromium.org

Fix Clang error on SettingChange.

BUG=None
TEST=None

Review URL: http://codereview.chromium.org/8597009

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110685 0039d316-1c4b-4281-b951-d872f2087c98
parent dd4391a2
// Copyright (c) 2011 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.
#include "chrome/browser/protector/setting_change.h"
namespace protector {
SettingChange::SettingChange() {
}
SettingChange::~SettingChange() {
}
bool SettingChange::Init(Protector* protector) {
return true;
}
void SettingChange::Apply(Protector* protector) {
}
void SettingChange::Discard(Protector* protector) {
}
} // namespace protector
......@@ -21,19 +21,19 @@ class Protector;
// Base class for setting change tracked by Protector.
class SettingChange {
public:
SettingChange() {}
virtual ~SettingChange() {}
SettingChange();
virtual ~SettingChange();
// Applies initial actions to the setting if needed. Must be called before
// any other calls are made, including text getters. Returns true if
// initialization was successful.
virtual bool Init(Protector* protector) { return true; }
virtual bool Init(Protector* protector);
// Persists new setting if needed.
virtual void Apply(Protector* protector) {}
virtual void Apply(Protector* protector);
// Restores old setting if needed.
virtual void Discard(Protector* protector) {}
virtual void Discard(Protector* protector);
// Returns the wrench menu item and bubble title.
virtual string16 GetTitle() const = 0;
......
......@@ -1972,6 +1972,7 @@
'browser/protector/keys.h',
'browser/protector/protector.cc',
'browser/protector/protector.h',
'browser/protector/setting_change.cc',
'browser/protector/setting_change.h',
'browser/protector/settings_change_global_error.cc',
'browser/protector/settings_change_global_error.h',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment