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

Unified Diff: ash/system/tray_update.cc

Issue 10269017: Remove scoped_ptr for system tray views (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/system/tray_update.h ('k') | ash/system/user/tray_user.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/tray_update.cc
diff --git a/ash/system/tray_update.cc b/ash/system/tray_update.cc
index 8d1399591a9bfd768662b64d8a1e63af33522f3c..0c0ee041b33bf4c9a6f077234435b9315081716f 100644
--- a/ash/system/tray_update.cc
+++ b/ash/system/tray_update.cc
@@ -69,12 +69,10 @@ bool TrayUpdate::GetInitialVisibility() {
views::View* TrayUpdate::CreateDefaultView(user::LoginStatus status) {
if (!Shell::GetInstance()->tray_delegate()->SystemShouldUpgrade())
return NULL;
- default_.reset(new UpdateView);
- return default_.get();
+ return new UpdateView;
}
void TrayUpdate::DestroyDefaultView() {
- default_.reset();
}
void TrayUpdate::OnUpdateRecommended() {
« no previous file with comments | « ash/system/tray_update.h ('k') | ash/system/user/tray_user.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698