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

Side by Side Diff: chrome/browser/chromeos/file_system_provider/notification_manager.cc

Issue 623293003: replace OVERRIDE and FINAL with override and final in chrome/browser/chromeos/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: run git cl format on echo_dialog_view.h Created 6 years, 2 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 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/file_system_provider/notification_manager.h" 5 #include "chrome/browser/chromeos/file_system_provider/notification_manager.h"
6 6
7 #include "base/strings/utf_string_conversions.h" 7 #include "base/strings/utf_string_conversions.h"
8 #include "chrome/browser/browser_process.h" 8 #include "chrome/browser/browser_process.h"
9 #include "chrome/browser/extensions/app_icon_loader_impl.h" 9 #include "chrome/browser/extensions/app_icon_loader_impl.h"
10 #include "chrome/grit/generated_resources.h" 10 #include "chrome/grit/generated_resources.h"
(...skipping 14 matching lines...) Expand all
25 // Forwards notification events to the notification manager. 25 // Forwards notification events to the notification manager.
26 class ProviderNotificationDelegate 26 class ProviderNotificationDelegate
27 : public message_center::NotificationDelegate { 27 : public message_center::NotificationDelegate {
28 public: 28 public:
29 // Passing a raw pointer is safe here, since the life of each notification is 29 // Passing a raw pointer is safe here, since the life of each notification is
30 // shorter than life of the |notification_manager|. 30 // shorter than life of the |notification_manager|.
31 explicit ProviderNotificationDelegate( 31 explicit ProviderNotificationDelegate(
32 NotificationManager* notification_manager) 32 NotificationManager* notification_manager)
33 : notification_manager_(notification_manager) {} 33 : notification_manager_(notification_manager) {}
34 34
35 virtual void ButtonClick(int button_index) OVERRIDE { 35 virtual void ButtonClick(int button_index) override {
36 notification_manager_->OnButtonClick(button_index); 36 notification_manager_->OnButtonClick(button_index);
37 } 37 }
38 38
39 virtual void Display() OVERRIDE {} 39 virtual void Display() override {}
40 40
41 virtual void Error() OVERRIDE { notification_manager_->OnError(); } 41 virtual void Error() override { notification_manager_->OnError(); }
42 42
43 virtual void Close(bool by_user) OVERRIDE { 43 virtual void Close(bool by_user) override {
44 notification_manager_->OnClose(); 44 notification_manager_->OnClose();
45 } 45 }
46 46
47 virtual void Click() OVERRIDE {} 47 virtual void Click() override {}
48 48
49 private: 49 private:
50 virtual ~ProviderNotificationDelegate() {} 50 virtual ~ProviderNotificationDelegate() {}
51 NotificationManager* notification_manager_; // Not owned. 51 NotificationManager* notification_manager_; // Not owned.
52 52
53 DISALLOW_COPY_AND_ASSIGN(ProviderNotificationDelegate); 53 DISALLOW_COPY_AND_ASSIGN(ProviderNotificationDelegate);
54 }; 54 };
55 55
56 } // namespace 56 } // namespace
57 57
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 while (it != callbacks_.end()) { 152 while (it != callbacks_.end()) {
153 CallbackMap::iterator current_it = it++; 153 CallbackMap::iterator current_it = it++;
154 NotificationCallback callback = current_it->second; 154 NotificationCallback callback = current_it->second;
155 callbacks_.erase(current_it); 155 callbacks_.erase(current_it);
156 callback.Run(result); 156 callback.Run(result);
157 } 157 }
158 } 158 }
159 159
160 } // namespace file_system_provider 160 } // namespace file_system_provider
161 } // namespace chromeos 161 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698