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

Unified Diff: chrome/browser/chromeos/extensions/wallpaper_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
« no previous file with comments | « base/values_unittest.cc ('k') | chrome/browser/chromeos/extensions/wallpaper_private_api.cc » ('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 06b598ad5cdc48ae985c40b915b746b5d59ae00d..63078294c5834228bb2a8ec01b9a7b3d4e94dc01 100644
--- a/chrome/browser/chromeos/extensions/wallpaper_api.cc
+++ b/chrome/browser/chromeos/extensions/wallpaper_api.cc
@@ -14,6 +14,7 @@
#include "base/memory/ref_counted_memory.h"
#include "base/strings/stringprintf.h"
#include "base/threading/worker_pool.h"
+#include "base/values.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/chromeos/extensions/wallpaper_private_api.h"
#include "chrome/browser/chromeos/file_manager/app_id.h"
@@ -34,7 +35,7 @@
#include "net/url_request/url_fetcher_delegate.h"
#include "url/gurl.h"
-using base::BinaryValue;
+using base::Value;
using content::BrowserThread;
typedef base::Callback<void(bool success, const std::string&)> FetchCallback;
@@ -227,14 +228,12 @@ void WallpaperSetWallpaperFunction::GenerateThumbnail(
void WallpaperSetWallpaperFunction::ThumbnailGenerated(
base::RefCountedBytes* original_data,
base::RefCountedBytes* thumbnail_data) {
- std::unique_ptr<BinaryValue> original_result =
- BinaryValue::CreateWithCopiedBuffer(
- reinterpret_cast<const char*>(original_data->front()),
- original_data->size());
- std::unique_ptr<BinaryValue> thumbnail_result =
- BinaryValue::CreateWithCopiedBuffer(
- reinterpret_cast<const char*>(thumbnail_data->front()),
- thumbnail_data->size());
+ std::unique_ptr<Value> original_result = Value::CreateWithCopiedBuffer(
+ reinterpret_cast<const char*>(original_data->front()),
+ original_data->size());
+ std::unique_ptr<Value> thumbnail_result = Value::CreateWithCopiedBuffer(
+ reinterpret_cast<const char*>(thumbnail_data->front()),
+ thumbnail_data->size());
if (params_->details.thumbnail) {
SetResult(thumbnail_result->CreateDeepCopy());
« no previous file with comments | « base/values_unittest.cc ('k') | chrome/browser/chromeos/extensions/wallpaper_private_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698