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

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

Issue 10537073: [cros] Fix broken profile image on Options/Change picture page. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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
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 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_IMPL_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_IMPL_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_IMPL_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_IMPL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 // Stores layout and type preference in local state. Runs on UI thread. 247 // Stores layout and type preference in local state. Runs on UI thread.
248 void SaveWallpaperToLocalState(const std::string& username, 248 void SaveWallpaperToLocalState(const std::string& username,
249 const std::string& wallpaper_path, 249 const std::string& wallpaper_path,
250 ash::WallpaperLayout layout, 250 ash::WallpaperLayout layout,
251 User::WallpaperType type); 251 User::WallpaperType type);
252 252
253 // Saves |image| to the specified |image_path|. Runs on FILE thread. 253 // Saves |image| to the specified |image_path|. Runs on FILE thread.
254 bool SaveBitmapToFile(const SkBitmap& image, 254 bool SaveBitmapToFile(const SkBitmap& image,
255 const FilePath& image_path); 255 const FilePath& image_path);
256 256
257 // Initializes |downloaded_profile_picture_| with the picture of the logged-in 257 // Initializes |downloaded_profile_image_| with the picture of the logged-in
258 // user. 258 // user.
259 void InitDownloadedProfileImage(); 259 void InitDownloadedProfileImage();
260 260
261 // Deletes user's image file. Runs on FILE thread. 261 // Deletes user's image file. Runs on FILE thread.
262 void DeleteUserImage(const FilePath& image_path); 262 void DeleteUserImage(const FilePath& image_path);
263 263
264 // Updates current user ownership on UI thread. 264 // Updates current user ownership on UI thread.
265 void UpdateOwnership(bool is_owner); 265 void UpdateOwnership(bool is_owner);
266 266
267 // Checks current user's ownership on file thread. 267 // Checks current user's ownership on file thread.
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 352
353 // Data URL for |downloaded_profile_image_|. 353 // Data URL for |downloaded_profile_image_|.
354 std::string downloaded_profile_image_data_url_; 354 std::string downloaded_profile_image_data_url_;
355 355
356 DISALLOW_COPY_AND_ASSIGN(UserManagerImpl); 356 DISALLOW_COPY_AND_ASSIGN(UserManagerImpl);
357 }; 357 };
358 358
359 } // namespace chromeos 359 } // namespace chromeos
360 360
361 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_IMPL_H_ 361 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/user_image_screen.cc ('k') | chrome/browser/chromeos/login/user_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698