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

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

Issue 1412813003: This CL replaces user_manager::UserID with AccountId. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@468875--Chrome-OS-handles-deletion-of-Gmail-account-poorly--Create-AccountID-structure-part2--user_names
Patch Set: Update after review. Created 5 years, 2 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..92737537894a7ced7b44b93db2345d2aa80cf841 100644
--- a/chrome/browser/ui/webui/options/chromeos/user_image_source.h
+++ b/chrome/browser/ui/webui/options/chromeos/user_image_source.h
@@ -13,6 +13,8 @@
#include "content/public/browser/url_data_source.h"
#include "ui/base/layout.h"
+class AccountId;
+
namespace base {
class RefCountedMemory;
}
@@ -35,9 +37,9 @@ class UserImageSource : public content::URLDataSource {
const content::URLDataSource::GotDataCallback& callback) override;
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,
+ // Returns PNG encoded image for user with specified |account_id|. If there's
+ // no user with such id, returns the first default image.
achuithb 2015/10/28 23:11:46 s/id/an id/
Alexander Alekseev 2015/10/29 02:00:42 Done.
+ static base::RefCountedMemory* GetUserImage(const AccountId& account_id,
ui::ScaleFactor scale_factor);
private:

Powered by Google App Engine
This is Rietveld 408576698