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

Unified Diff: chrome/browser/ui/webui/options/chromeos/user_image_source.h

Issue 1165323004: We should use UserID object to identify users instead of username. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/options/chromeos/user_image_source.h
diff --git a/chrome/browser/ui/webui/options/chromeos/user_image_source.h b/chrome/browser/ui/webui/options/chromeos/user_image_source.h
index ad11d6ada99bf08677de41ef81aee63083e5e448..3f9bb844083b12fbf1382b451688a37733caf4b6 100644
--- a/chrome/browser/ui/webui/options/chromeos/user_image_source.h
+++ b/chrome/browser/ui/webui/options/chromeos/user_image_source.h
@@ -17,6 +17,10 @@ namespace base {
class RefCountedMemory;
}
+namespace user_manager {
+class UserID;
+}
+
namespace chromeos {
namespace options {
@@ -36,8 +40,8 @@ class UserImageSource : public content::URLDataSource {
std::string GetMimeType(const std::string& path) const override;
// Returns PNG encoded image for user with specified email. If there's
- // no user with such email, returns the first default image.
- static base::RefCountedMemory* GetUserImage(const std::string& email,
+ // no user with such user id, returns the first default image.
+ static base::RefCountedMemory* GetUserImage(const user_manager::UserID& user_id,
ui::ScaleFactor scale_factor);
private:

Powered by Google App Engine
This is Rietveld 408576698