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

Side by Side Diff: ash/system/network/tray_network.cc

Issue 10200006: ash: Refresh the tray items, instead of recreating them, when login status changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « ash/system/network/tray_network.h ('k') | ash/system/power/tray_power.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/network/tray_network.h" 5 #include "ash/system/network/tray_network.h"
6 6
7 #include "ash/shell.h" 7 #include "ash/shell.h"
8 #include "ash/shell_window_ids.h" 8 #include "ash/shell_window_ids.h"
9 #include "ash/system/tray/system_tray.h" 9 #include "ash/system/tray/system_tray.h"
10 #include "ash/system/tray/system_tray_delegate.h" 10 #include "ash/system/tray/system_tray_delegate.h"
(...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after
510 } 510 }
511 511
512 void TrayNetwork::DestroyDefaultView() { 512 void TrayNetwork::DestroyDefaultView() {
513 default_.reset(); 513 default_.reset();
514 } 514 }
515 515
516 void TrayNetwork::DestroyDetailedView() { 516 void TrayNetwork::DestroyDetailedView() {
517 detailed_.reset(); 517 detailed_.reset();
518 } 518 }
519 519
520 void TrayNetwork::UpdateAfterLoginStatusChange(user::LoginStatus status) {
521 }
522
520 void TrayNetwork::OnNetworkRefresh(const NetworkIconInfo& info) { 523 void TrayNetwork::OnNetworkRefresh(const NetworkIconInfo& info) {
521 if (tray_.get()) 524 if (tray_.get())
522 tray_->Update(info); 525 tray_->Update(info);
523 if (default_.get()) 526 if (default_.get())
524 default_->Update(); 527 default_->Update();
525 if (detailed_.get()) 528 if (detailed_.get())
526 detailed_->Update(); 529 detailed_->Update();
527 } 530 }
528 531
529 } // namespace internal 532 } // namespace internal
530 } // namespace ash 533 } // namespace ash
OLDNEW
« no previous file with comments | « ash/system/network/tray_network.h ('k') | ash/system/power/tray_power.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698