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

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

Issue 376193002: Move UserImage to user_manager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add ui/gfx dep 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
« no previous file with comments | « components/user_manager/DEPS ('k') | components/user_manager/avatar/user_image.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/user_manager/avatar/user_image.h
diff --git a/chrome/browser/chromeos/login/users/avatar/user_image.h b/components/user_manager/avatar/user_image.h
similarity index 89%
rename from chrome/browser/chromeos/login/users/avatar/user_image.h
rename to components/user_manager/avatar/user_image.h
index 632da0a56d6a07711d101c63525023eca5b3fcb4..5e40fd3b5740d364893428470a9f7ae0cd46573f 100644
--- a/chrome/browser/chromeos/login/users/avatar/user_image.h
+++ b/components/user_manager/avatar/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_AVATAR_USER_IMAGE_H_
+#define COMPONENTS_USER_MANAGER_AVATAR_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"
blundell 2014/07/09 14:22:22 you should also have a url dependency.
Nikita (slow) 2014/07/09 14:44:37 Done.
-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_AVATAR_USER_IMAGE_H_
« no previous file with comments | « components/user_manager/DEPS ('k') | components/user_manager/avatar/user_image.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698