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

Side by Side Diff: chrome/browser/notifications/system_component_notifier_source_chromeos.cc

Issue 2732813002: chromeos: Move files in //ash/common to //ash, part 1 (Closed)
Patch Set: rebase Created 3 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/notifications/system_component_notifier_source_chromeos .h" 5 #include "chrome/browser/notifications/system_component_notifier_source_chromeos .h"
6 6
7 #include "ash/common/system/system_notifier.h" 7 #include "ash/system/system_notifier.h"
8 #include "chrome/browser/notifications/notifier_state_tracker.h" 8 #include "chrome/browser/notifications/notifier_state_tracker.h"
9 #include "chrome/browser/notifications/notifier_state_tracker_factory.h" 9 #include "chrome/browser/notifications/notifier_state_tracker_factory.h"
10 #include "chrome/grit/theme_resources.h" 10 #include "chrome/grit/theme_resources.h"
11 #include "ui/base/l10n/l10n_util.h" 11 #include "ui/base/l10n/l10n_util.h"
12 #include "ui/base/resource/resource_bundle.h" 12 #include "ui/base/resource/resource_bundle.h"
13 #include "ui/message_center/notifier_settings.h" 13 #include "ui/message_center/notifier_settings.h"
14 #include "ui/strings/grit/ui_strings.h" 14 #include "ui/strings/grit/ui_strings.h"
15 15
16 SystemComponentNotifierSourceChromeOS::SystemComponentNotifierSourceChromeOS( 16 SystemComponentNotifierSourceChromeOS::SystemComponentNotifierSourceChromeOS(
17 Observer* observer) 17 Observer* observer)
(...skipping 29 matching lines...) Expand all
47 bool enabled) { 47 bool enabled) {
48 NotifierStateTrackerFactory::GetForProfile(profile)->SetNotifierEnabled( 48 NotifierStateTrackerFactory::GetForProfile(profile)->SetNotifierEnabled(
49 notifier.notifier_id, enabled); 49 notifier.notifier_id, enabled);
50 observer_->OnNotifierEnabledChanged(notifier.notifier_id, enabled); 50 observer_->OnNotifierEnabledChanged(notifier.notifier_id, enabled);
51 } 51 }
52 52
53 message_center::NotifierId::NotifierType 53 message_center::NotifierId::NotifierType
54 SystemComponentNotifierSourceChromeOS::GetNotifierType() { 54 SystemComponentNotifierSourceChromeOS::GetNotifierType() {
55 return message_center::NotifierId::SYSTEM_COMPONENT; 55 return message_center::NotifierId::SYSTEM_COMPONENT;
56 } 56 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698