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

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

Issue 9844026: Fix memory uninit (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix uninit memory 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 | « 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_manager_impl.h" 5 #include "chrome/browser/chromeos/login/user_manager_impl.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "ash/shell.h" 9 #include "ash/shell.h"
10 #include "ash/desktop_background/desktop_background_controller.h" 10 #include "ash/desktop_background/desktop_background_controller.h"
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 void UserManagerImpl::EphemeralUserLoggedIn(const std::string& email) { 434 void UserManagerImpl::EphemeralUserLoggedIn(const std::string& email) {
435 is_current_user_new_ = true; 435 is_current_user_new_ = true;
436 is_current_user_ephemeral_ = true; 436 is_current_user_ephemeral_ = true;
437 logged_in_user_ = CreateUser(email); 437 logged_in_user_ = CreateUser(email);
438 SetInitialUserImage(email); 438 SetInitialUserImage(email);
439 NotifyOnLogin(); 439 NotifyOnLogin();
440 } 440 }
441 441
442 void UserManagerImpl::StubUserLoggedIn() { 442 void UserManagerImpl::StubUserLoggedIn() {
443 is_current_user_ephemeral_ = true; 443 is_current_user_ephemeral_ = true;
444 current_user_wallpaper_index_ = ash::GetGuestWallpaperIndex();
444 logged_in_user_ = new User(kStubUser, false); 445 logged_in_user_ = new User(kStubUser, false);
445 logged_in_user_->SetImage(GetDefaultImage(kStubDefaultImageIndex), 446 logged_in_user_->SetImage(GetDefaultImage(kStubDefaultImageIndex),
446 kStubDefaultImageIndex); 447 kStubDefaultImageIndex);
447 } 448 }
448 449
449 void UserManagerImpl::RemoveUser(const std::string& email, 450 void UserManagerImpl::RemoveUser(const std::string& email,
450 RemoveUserDelegate* delegate) { 451 RemoveUserDelegate* delegate) {
451 if (!IsKnownUser(email)) 452 if (!IsKnownUser(email))
452 return; 453 return;
453 454
(...skipping 802 matching lines...) Expand 10 before | Expand all | Expand 10 after
1256 BrowserThread::PostTask( 1257 BrowserThread::PostTask(
1257 BrowserThread::FILE, 1258 BrowserThread::FILE,
1258 FROM_HERE, 1259 FROM_HERE,
1259 base::Bind(&UserManagerImpl::DeleteUserImage, 1260 base::Bind(&UserManagerImpl::DeleteUserImage,
1260 base::Unretained(this), 1261 base::Unretained(this),
1261 image_path)); 1262 image_path));
1262 } 1263 }
1263 } 1264 }
1264 1265
1265 } // namespace chromeos 1266 } // 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