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

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

Issue 2799093006: Remove base::BinaryValue (Closed)
Patch Set: Rebase Created 3 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/extensions/wallpaper_private_api.cc
diff --git a/chrome/browser/chromeos/extensions/wallpaper_private_api.cc b/chrome/browser/chromeos/extensions/wallpaper_private_api.cc
index 0dc4027c8776cdc9d7c90dd6c0a056bf3168ecf4..bc9e19ff3d1fc6fb76b5d608c7ebdc7d84ba65fd 100644
--- a/chrome/browser/chromeos/extensions/wallpaper_private_api.cc
+++ b/chrome/browser/chromeos/extensions/wallpaper_private_api.cc
@@ -29,6 +29,7 @@
#include "base/strings/stringprintf.h"
#include "base/threading/sequenced_worker_pool.h"
#include "base/threading/worker_pool.h"
+#include "base/values.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.h"
#include "chrome/browser/chromeos/profiles/profile_helper.h"
@@ -52,7 +53,7 @@
#include "ui/strings/grit/app_locale_settings.h"
#include "url/gurl.h"
-using base::BinaryValue;
+using base::Value;
using content::BrowserThread;
namespace wallpaper_base = extensions::api::wallpaper;
@@ -698,7 +699,7 @@ void WallpaperPrivateSetCustomWallpaperFunction::GenerateThumbnail(
void WallpaperPrivateSetCustomWallpaperFunction::ThumbnailGenerated(
base::RefCountedBytes* data) {
- SetResult(BinaryValue::CreateWithCopiedBuffer(
+ SetResult(Value::CreateWithCopiedBuffer(
reinterpret_cast<const char*>(data->front()), data->size()));
SendResponse(true);
}
@@ -823,7 +824,7 @@ void WallpaperPrivateGetThumbnailFunction::FileNotLoaded() {
void WallpaperPrivateGetThumbnailFunction::FileLoaded(
const std::string& data) {
- SetResult(BinaryValue::CreateWithCopiedBuffer(data.c_str(), data.size()));
+ SetResult(Value::CreateWithCopiedBuffer(data.c_str(), data.size()));
SendResponse(true);
}

Powered by Google App Engine
This is Rietveld 408576698