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

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: Comments updated. 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..a228c90961088505a76ed9f2617a28c7b64c25f9 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,9 @@ class UserImage {
bool is_safe_format() const { return is_safe_format_; }
void MarkAsSafe();
+ 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 +72,9 @@ class UserImage {
bool has_animated_image_;
RawImage animated_image_;
GURL url_;
+
+ // If image was loaded from the local file, file path is stored here.
+ std::string file_path_;
bool is_safe_format_;
};

Powered by Google App Engine
This is Rietveld 408576698