OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/chromeos/policy/consumer_management_service.h" | 5 #include "chrome/browser/chromeos/policy/consumer_management_service.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/location.h" | 9 #include "base/location.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 } | 73 } |
74 | 74 |
75 class DesktopNotificationDelegate : public NotificationDelegate { | 75 class DesktopNotificationDelegate : public NotificationDelegate { |
76 public: | 76 public: |
77 // |button_click_callback| is called when the button in the notification is | 77 // |button_click_callback| is called when the button in the notification is |
78 // clicked. | 78 // clicked. |
79 DesktopNotificationDelegate(const std::string& id, | 79 DesktopNotificationDelegate(const std::string& id, |
80 const base::Closure& button_click_callback); | 80 const base::Closure& button_click_callback); |
81 | 81 |
82 // NotificationDelegate: | 82 // NotificationDelegate: |
83 virtual std::string id() const OVERRIDE; | 83 virtual std::string id() const override; |
84 virtual content::WebContents* GetWebContents() const OVERRIDE; | 84 virtual content::WebContents* GetWebContents() const override; |
85 virtual void Display() OVERRIDE; | 85 virtual void Display() override; |
86 virtual void ButtonClick(int button_index) OVERRIDE; | 86 virtual void ButtonClick(int button_index) override; |
87 virtual void Error() OVERRIDE; | 87 virtual void Error() override; |
88 virtual void Close(bool by_user) OVERRIDE; | 88 virtual void Close(bool by_user) override; |
89 virtual void Click() OVERRIDE; | 89 virtual void Click() override; |
90 | 90 |
91 private: | 91 private: |
92 virtual ~DesktopNotificationDelegate(); | 92 virtual ~DesktopNotificationDelegate(); |
93 | 93 |
94 std::string id_; | 94 std::string id_; |
95 base::Closure button_click_callback_; | 95 base::Closure button_click_callback_; |
96 | 96 |
97 DISALLOW_COPY_AND_ASSIGN(DesktopNotificationDelegate); | 97 DISALLOW_COPY_AND_ASSIGN(DesktopNotificationDelegate); |
98 }; | 98 }; |
99 | 99 |
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
526 chrome::NavigateParams params(profile, url, ui::PAGE_TRANSITION_LINK); | 526 chrome::NavigateParams params(profile, url, ui::PAGE_TRANSITION_LINK); |
527 params.disposition = NEW_FOREGROUND_TAB; | 527 params.disposition = NEW_FOREGROUND_TAB; |
528 chrome::Navigate(¶ms); | 528 chrome::Navigate(¶ms); |
529 } | 529 } |
530 | 530 |
531 void ConsumerManagementService::NotifyStatusChanged() { | 531 void ConsumerManagementService::NotifyStatusChanged() { |
532 FOR_EACH_OBSERVER(Observer, observers_, OnConsumerManagementStatusChanged()); | 532 FOR_EACH_OBSERVER(Observer, observers_, OnConsumerManagementStatusChanged()); |
533 } | 533 } |
534 | 534 |
535 } // namespace policy | 535 } // namespace policy |
OLD | NEW |