summaryrefslogtreecommitdiffstats
path: root/ui/message_center/fake_notifier_settings_provider.cc
diff options
context:
space:
mode:
authorcsharp@chromium.org <csharp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-01 19:45:35 +0000
committercsharp@chromium.org <csharp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-01 19:45:35 +0000
commit628266997a0f6d07cf79bea323a668bc272f8ad3 (patch)
treee51a8be46bf1d91a1ab8198f3bb962f470c1ee90 /ui/message_center/fake_notifier_settings_provider.cc
parentc0c271b6a40225a489c74e89d7eb128194a3c1dc (diff)
downloadchromium_src-628266997a0f6d07cf79bea323a668bc272f8ad3.zip
chromium_src-628266997a0f6d07cf79bea323a668bc272f8ad3.tar.gz
chromium_src-628266997a0f6d07cf79bea323a668bc272f8ad3.tar.bz2
Revert 232439 "Add a way for notifications to be linked from set..."
> Add a way for notifications to be linked from settings dialog. > > Adds an event, onShowSettings, that is fired when the link is clicked. > The link is only shown when the event is subscribed to. > > BUG=304208,286608 > > Review URL: https://codereview.chromium.org/26876006 TBR=dewittj@chromium.org Review URL: https://codereview.chromium.org/56353004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232444 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/message_center/fake_notifier_settings_provider.cc')
-rw-r--r--ui/message_center/fake_notifier_settings_provider.cc29
1 files changed, 3 insertions, 26 deletions
diff --git a/ui/message_center/fake_notifier_settings_provider.cc b/ui/message_center/fake_notifier_settings_provider.cc
index c25f7a2..f593ed9 100644
--- a/ui/message_center/fake_notifier_settings_provider.cc
+++ b/ui/message_center/fake_notifier_settings_provider.cc
@@ -17,14 +17,13 @@ FakeNotifierSettingsProvider::NotifierGroupItem::~NotifierGroupItem() {
FakeNotifierSettingsProvider::FakeNotifierSettingsProvider()
: closed_called_count_(0),
- active_item_index_(0),
- notifier_settings_requested_count_(0u) { }
+ active_item_index_(0) {
+}
FakeNotifierSettingsProvider::FakeNotifierSettingsProvider(
const std::vector<Notifier*>& notifiers)
: closed_called_count_(0),
- active_item_index_(0),
- notifier_settings_requested_count_(0u) {
+ active_item_index_(0) {
NotifierGroupItem item;
item.group = new NotifierGroup(gfx::Image(),
UTF8ToUTF16("Fake name"),
@@ -79,19 +78,6 @@ void FakeNotifierSettingsProvider::OnNotifierSettingsClosing() {
closed_called_count_++;
}
-bool FakeNotifierSettingsProvider::NotifierHasAdvancedSettings(
- const message_center::NotifierId& notifier_id) const {
- if (!notifier_id_with_settings_handler_)
- return false;
- return *notifier_id_with_settings_handler_ == notifier_id;
-}
-
-void FakeNotifierSettingsProvider::OnNotifierAdvancedSettingsRequested(
- const NotifierId& notifier_id,
- const std::string* notification_id) {
- notifier_settings_requested_count_++;
-}
-
void FakeNotifierSettingsProvider::AddObserver(
NotifierSettingsObserver* observer) {
}
@@ -112,17 +98,8 @@ void FakeNotifierSettingsProvider::AddGroup(
items_.push_back(item);
}
-void FakeNotifierSettingsProvider::SetNotifierHasAdvancedSettings(
- const NotifierId& notifier_id) {
- notifier_id_with_settings_handler_.reset(new NotifierId(notifier_id));
-}
-
int FakeNotifierSettingsProvider::closed_called_count() {
return closed_called_count_;
}
-size_t FakeNotifierSettingsProvider::settings_requested_count() const {
- return notifier_settings_requested_count_;
-}
-
} // namespace message_center