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

Side by Side Diff: chrome/browser/chromeos/login/user_image_screen.cc

Issue 14063002: Fix uninitialized variable (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | « no previous file | no next file » | 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 "chrome/browser/chromeos/login/user_image_screen.h" 5 #include "chrome/browser/chromeos/login/user_image_screen.h"
6 6
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "base/metrics/histogram.h" 8 #include "base/metrics/histogram.h"
9 #include "chrome/browser/chromeos/accessibility/accessibility_util.h" 9 #include "chrome/browser/chromeos/accessibility/accessibility_util.h"
10 #include "chrome/browser/chromeos/login/default_user_images.h" 10 #include "chrome/browser/chromeos/login/default_user_images.h"
(...skipping 17 matching lines...) Expand all
28 namespace { 28 namespace {
29 29
30 // Time histogram suffix for profile image download. 30 // Time histogram suffix for profile image download.
31 const char kProfileDownloadReason[] = "OOBE"; 31 const char kProfileDownloadReason[] = "OOBE";
32 32
33 } // namespace 33 } // namespace
34 34
35 UserImageScreen::UserImageScreen(ScreenObserver* screen_observer, 35 UserImageScreen::UserImageScreen(ScreenObserver* screen_observer,
36 UserImageScreenActor* actor) 36 UserImageScreenActor* actor)
37 : WizardScreen(screen_observer), 37 : WizardScreen(screen_observer),
38 actor_(actor) { 38 actor_(actor),
39 profile_picture_enabled_(false) {
39 actor_->SetDelegate(this); 40 actor_->SetDelegate(this);
40 registrar_.Add(this, chrome::NOTIFICATION_PROFILE_IMAGE_UPDATED, 41 SetProfilePictureEnabled(true);
41 content::NotificationService::AllSources());
42 registrar_.Add(this, chrome::NOTIFICATION_PROFILE_IMAGE_UPDATE_FAILED,
43 content::NotificationService::AllSources());
44 } 42 }
45 43
46 UserImageScreen::~UserImageScreen() { 44 UserImageScreen::~UserImageScreen() {
47 if (actor_) 45 if (actor_)
48 actor_->SetDelegate(NULL); 46 actor_->SetDelegate(NULL);
49 } 47 }
50 48
51 void UserImageScreen::SetProfilePictureEnabled(bool profile_picture_enabled) { 49 void UserImageScreen::SetProfilePictureEnabled(bool profile_picture_enabled) {
52 if (profile_picture_enabled_ == profile_picture_enabled) 50 if (profile_picture_enabled_ == profile_picture_enabled)
53 return; 51 return;
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 if (actor_) 171 if (actor_)
174 actor_->OnProfileImageAbsent(); 172 actor_->OnProfileImageAbsent();
175 break; 173 break;
176 } 174 }
177 default: 175 default:
178 NOTREACHED(); 176 NOTREACHED();
179 } 177 }
180 } 178 }
181 179
182 } // namespace chromeos 180 } // namespace chromeos
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698