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

Unified Diff: chrome/browser/chromeos/extensions/wallpaper_private_api.h

Issue 1497973002: This CL replaces e-mail with AccountId in wallpaper manager code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update after review. Created 5 years 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/chromeos/extensions/wallpaper_private_api.h
diff --git a/chrome/browser/chromeos/extensions/wallpaper_private_api.h b/chrome/browser/chromeos/extensions/wallpaper_private_api.h
index 71cfcba168b62888cb2bef7626f0303fb2bea359..035d284532cd6a2036eb2c3ae8a4fb56a23ef4f3 100644
--- a/chrome/browser/chromeos/extensions/wallpaper_private_api.h
+++ b/chrome/browser/chromeos/extensions/wallpaper_private_api.h
@@ -11,6 +11,7 @@
#include "base/threading/sequenced_worker_pool.h"
#include "chrome/browser/chromeos/extensions/wallpaper_function_base.h"
#include "chrome/common/extensions/api/wallpaper_private.h"
+#include "components/signin/core/account_id/account_id.h"
#include "net/url_request/url_fetcher_delegate.h"
namespace chromeos {
@@ -72,7 +73,7 @@ class WallpaperPrivateSetWallpaperIfExistsFunction
params;
// User id of the active user when this api is been called.
- std::string user_id_;
+ AccountId account_id_ = EmptyAccountId();
// Sequence token associated with wallpaper operations. Shared with
// WallpaperManager.
@@ -107,8 +108,8 @@ class WallpaperPrivateSetWallpaperFunction : public WallpaperFunctionBase {
// FILE thread to resize and save wallpaper to disk.
gfx::ImageSkia wallpaper_;
- // User id of the active user when this api is been called.
- std::string user_id_;
+ // User account id of the active user when this api is been called.
+ AccountId account_id_ = EmptyAccountId();
// Sequence token associated with wallpaper operations. Shared with
// WallpaperManager.
@@ -158,8 +159,8 @@ class WallpaperPrivateSetCustomWallpaperFunction
scoped_ptr<extensions::api::wallpaper_private::SetCustomWallpaper::Params>
params;
- // User id of the active user when this api is been called.
- std::string user_id_;
+ // User account id of the active user when this api is been called.
+ AccountId account_id_ = EmptyAccountId();
// User id hash of the logged in user.
std::string user_id_hash_;
« no previous file with comments | « chrome/browser/chromeos/extensions/wallpaper_api.cc ('k') | chrome/browser/chromeos/extensions/wallpaper_private_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698