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

Unified Diff: components/user_manager/user_image/user_image.h

Issue 376193002: Move UserImage to user_manager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 5 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: components/user_manager/user_image/user_image.h
diff --git a/chrome/browser/chromeos/login/users/avatar/user_image.h b/components/user_manager/user_image/user_image.h
similarity index 89%
rename from chrome/browser/chromeos/login/users/avatar/user_image.h
rename to components/user_manager/user_image/user_image.h
index 632da0a56d6a07711d101c63525023eca5b3fcb4..81fbd76a68d021ca7034fe7390b5156023fe3d89 100644
--- a/chrome/browser/chromeos/login/users/avatar/user_image.h
+++ b/components/user_manager/user_image/user_image.h
@@ -2,21 +2,22 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_CHROMEOS_LOGIN_USERS_AVATAR_USER_IMAGE_H_
-#define CHROME_BROWSER_CHROMEOS_LOGIN_USERS_AVATAR_USER_IMAGE_H_
+#ifndef COMPONENTS_USER_MANAGER_USER_IMAGE_USER_IMAGE_H_
+#define COMPONENTS_USER_MANAGER_USER_IMAGE_USER_IMAGE_H_
#include <string>
#include <vector>
+#include "components/user_manager/user_manager_export.h"
#include "ui/gfx/image/image_skia.h"
#include "url/gurl.h"
-namespace chromeos {
+namespace user_manager {
// Wrapper class storing a still image and it's raw representation. Could be
// used for storing profile images (including animated profile images) and user
// wallpapers.
-class UserImage {
+class USER_MANAGER_EXPORT UserImage {
public:
// TODO(ivankr): replace with RefCountedMemory to prevent copying.
typedef std::vector<unsigned char> RawImage;
@@ -78,6 +79,6 @@ class UserImage {
bool is_safe_format_;
};
-} // namespace chromeos
+} // namespace user_manager
-#endif // CHROME_BROWSER_CHROMEOS_LOGIN_USERS_AVATAR_USER_IMAGE_H_
+#endif // COMPONENTS_USER_MANAGER_USER_IMAGE_USER_IMAGE_H_

Powered by Google App Engine
This is Rietveld 408576698