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

Side by Side Diff: ash/system/tray/system_tray_notifier.cc

Issue 614363002: Added Aura notification that relaunch and powerwash is required in case of downgrade. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Refactoring of SystemTrayDelegate(Windows|Linux) is delayed. 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
« no previous file with comments | « ash/system/tray/system_tray_notifier.h ('k') | ash/system/tray_update.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "ash/system/tray/system_tray_notifier.h" 5 #include "ash/system/tray/system_tray_notifier.h"
6 6
7 #if defined(OS_CHROMEOS) 7 #if defined(OS_CHROMEOS)
8 #include "ash/system/chromeos/network/network_state_notifier.h" 8 #include "ash/system/chromeos/network/network_state_notifier.h"
9 #endif 9 #endif
10 10
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 LocaleObserver::Delegate* delegate, 278 LocaleObserver::Delegate* delegate,
279 const std::string& cur_locale, 279 const std::string& cur_locale,
280 const std::string& from_locale, 280 const std::string& from_locale,
281 const std::string& to_locale) { 281 const std::string& to_locale) {
282 FOR_EACH_OBSERVER( 282 FOR_EACH_OBSERVER(
283 LocaleObserver, 283 LocaleObserver,
284 locale_observers_, 284 locale_observers_,
285 OnLocaleChanged(delegate, cur_locale, from_locale, to_locale)); 285 OnLocaleChanged(delegate, cur_locale, from_locale, to_locale));
286 } 286 }
287 287
288 void SystemTrayNotifier::NotifyUpdateRecommended( 288 void SystemTrayNotifier::NotifyUpdateRecommended(const UpdateInfo& info) {
289 UpdateObserver::UpdateSeverity severity) { 289 FOR_EACH_OBSERVER(
290 FOR_EACH_OBSERVER(UpdateObserver, 290 UpdateObserver, update_observers_, OnUpdateRecommended(info));
291 update_observers_,
292 OnUpdateRecommended(severity));
293 } 291 }
294 292
295 void SystemTrayNotifier::NotifyUserUpdate() { 293 void SystemTrayNotifier::NotifyUserUpdate() {
296 FOR_EACH_OBSERVER(UserObserver, 294 FOR_EACH_OBSERVER(UserObserver,
297 user_observers_, 295 user_observers_,
298 OnUserUpdate()); 296 OnUserUpdate());
299 } 297 }
300 298
301 void SystemTrayNotifier::NotifyUserAddedToSession() { 299 void SystemTrayNotifier::NotifyUserAddedToSession() {
302 FOR_EACH_OBSERVER(UserObserver, 300 FOR_EACH_OBSERVER(UserObserver,
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 378
381 void SystemTrayNotifier::NotifyLastWindowClosed() { 379 void SystemTrayNotifier::NotifyLastWindowClosed() {
382 FOR_EACH_OBSERVER(LastWindowClosedObserver, 380 FOR_EACH_OBSERVER(LastWindowClosedObserver,
383 last_window_closed_observers_, 381 last_window_closed_observers_,
384 OnLastWindowClosed()); 382 OnLastWindowClosed());
385 } 383 }
386 384
387 #endif // OS_CHROMEOS 385 #endif // OS_CHROMEOS
388 386
389 } // namespace ash 387 } // namespace ash
OLDNEW
« no previous file with comments | « ash/system/tray/system_tray_notifier.h ('k') | ash/system/tray_update.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698