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

Unified Diff: chrome/browser/chromeos/extensions/wallpaper_private_api.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/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..623fb2129a1ccca28e7261f582735c4b418a4b80 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/user_manager/user_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_;
+ user_manager::UserID user_id_;
// Sequence token associated with wallpaper operations. Shared with
// WallpaperManager.
@@ -108,7 +109,7 @@ class WallpaperPrivateSetWallpaperFunction : public WallpaperFunctionBase {
gfx::ImageSkia wallpaper_;
// User id of the active user when this api is been called.
- std::string user_id_;
+ user_manager::UserID user_id_;
// Sequence token associated with wallpaper operations. Shared with
// WallpaperManager.
@@ -159,7 +160,7 @@ class WallpaperPrivateSetCustomWallpaperFunction
params;
// User id of the active user when this api is been called.
- std::string user_id_;
+ user_manager::UserID user_id_;
// User id hash of the logged in user.
std::string user_id_hash_;

Powered by Google App Engine
This is Rietveld 408576698