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

Unified Diff: chrome/browser/chromeos/login/user_image.h

Issue 236013002: Apply default wallpaper from customization manifest. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: After-review. Created 6 years, 8 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/login/user_image.h
diff --git a/chrome/browser/chromeos/login/user_image.h b/chrome/browser/chromeos/login/user_image.h
index b1e39336a38f1aa2222a571486c619714f5918d3..860b2d316c1902b078055f5e11a83cfa1c735ab6 100644
--- a/chrome/browser/chromeos/login/user_image.h
+++ b/chrome/browser/chromeos/login/user_image.h
@@ -5,6 +5,7 @@
#ifndef CHROME_BROWSER_CHROMEOS_LOGIN_USER_IMAGE_H_
#define CHROME_BROWSER_CHROMEOS_LOGIN_USER_IMAGE_H_
+#include <string>
#include <vector>
#include "ui/gfx/image/image_skia.h"
@@ -61,6 +62,10 @@ class UserImage {
bool is_safe_format() const { return is_safe_format_; }
void MarkAsSafe();
+ // If image was loaded from local file, file path is stored here.
Daniel Erat 2014/04/14 15:26:15 move this comment down to the member definition in
Alexander Alekseev 2014/04/15 01:57:16 Done.
+ const std::string& file_path() const { return file_path_; }
+ void set_file_path(const std::string& file_path) { file_path_ = file_path; }
+
private:
gfx::ImageSkia image_;
bool has_raw_image_;
@@ -68,6 +73,7 @@ class UserImage {
bool has_animated_image_;
RawImage animated_image_;
GURL url_;
+ std::string file_path_;
bool is_safe_format_;
};

Powered by Google App Engine
This is Rietveld 408576698