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

Unified Diff: chrome/browser/chromeos/extensions/wallpaper_api.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
« no previous file with comments | « base/values_unittest.cc ('k') | chrome/browser/chromeos/extensions/wallpaper_function_base.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/extensions/wallpaper_api.cc
diff --git a/chrome/browser/chromeos/extensions/wallpaper_api.cc b/chrome/browser/chromeos/extensions/wallpaper_api.cc
index 99c42ad63082b972345e66f070dc67e0a68ce90d..5eb9af3dcf20b53a175461c4b38e680228cbfa2e 100644
--- a/chrome/browser/chromeos/extensions/wallpaper_api.cc
+++ b/chrome/browser/chromeos/extensions/wallpaper_api.cc
@@ -4,6 +4,9 @@
#include "chrome/browser/chromeos/extensions/wallpaper_api.h"
+#include <string>
+#include <vector>
+
#include "ash/desktop_background/desktop_background_controller.h"
#include "base/files/file_util.h"
#include "base/lazy_instance.h"
@@ -205,7 +208,8 @@ void WallpaperSetWallpaperFunction::OnWallpaperFetched(
bool success,
const std::string& response) {
if (success) {
- params_->details.data.reset(new std::string(response));
+ params_->details.data.reset(
+ new std::vector<char>(response.begin(), response.end()));
StartDecode(*params_->details.data);
} else {
SetError(response);
« no previous file with comments | « base/values_unittest.cc ('k') | chrome/browser/chromeos/extensions/wallpaper_function_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698