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

Unified Diff: chrome/browser/chromeos/extensions/wallpaper_function_base.cc

Issue 820673004: json_schema_compiler: Use std::vector<char> for binary values. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@simplify_json_schema
Patch Set: Fix merge error. Created 5 years, 11 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_function_base.cc
diff --git a/chrome/browser/chromeos/extensions/wallpaper_function_base.cc b/chrome/browser/chromeos/extensions/wallpaper_function_base.cc
index 4ea0445c0b46320e3ee7e9d74e09508652c77910..3adda8e587dfbcd34d9575b99900078dda620506 100644
--- a/chrome/browser/chromeos/extensions/wallpaper_function_base.cc
+++ b/chrome/browser/chromeos/extensions/wallpaper_function_base.cc
@@ -48,7 +48,7 @@ class WallpaperFunctionBase::UnsafeWallpaperDecoder
: function_(function) {
}
- void Start(const std::string& image_data) {
+ void Start(const std::vector<char>& image_data) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
// This function can only be called after user login. It is fine to use
@@ -108,7 +108,7 @@ WallpaperFunctionBase::WallpaperFunctionBase() {
WallpaperFunctionBase::~WallpaperFunctionBase() {
}
-void WallpaperFunctionBase::StartDecode(const std::string& data) {
+void WallpaperFunctionBase::StartDecode(const std::vector<char>& data) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
if (unsafe_wallpaper_decoder_)
unsafe_wallpaper_decoder_->Cancel();

Powered by Google App Engine
This is Rietveld 408576698