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

Unified Diff: chrome/browser/extensions/api/media_galleries/media_galleries_api.cc

Issue 2664753002: Remove base::StringValue (Closed)
Patch Set: Rebase Created 3 years, 9 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/extensions/api/media_galleries/media_galleries_api.cc
diff --git a/chrome/browser/extensions/api/media_galleries/media_galleries_api.cc b/chrome/browser/extensions/api/media_galleries/media_galleries_api.cc
index 57abe0f8b1e474ba4391ba26eb2d4b60999b0d7a..1b9765f27168315369a6e87c3888d0c308321f4f 100644
--- a/chrome/browser/extensions/api/media_galleries/media_galleries_api.cc
+++ b/chrome/browser/extensions/api/media_galleries/media_galleries_api.cc
@@ -743,10 +743,8 @@ void MediaGalleriesGetMetadataFunction::ConstructNextBlob(
&(*attached_images)[blob_uuids->size()];
std::unique_ptr<base::DictionaryValue> attached_image(
new base::DictionaryValue);
- attached_image->Set(kBlobUUIDKey, new base::StringValue(
- current_blob->GetUUID()));
- attached_image->Set(kTypeKey, new base::StringValue(
- current_image->type));
+ attached_image->Set(kBlobUUIDKey, new base::Value(current_blob->GetUUID()));
+ attached_image->Set(kTypeKey, new base::Value(current_image->type));
attached_image->Set(
kSizeKey,
new base::Value(base::checked_cast<int>(current_image->data.size())));
« no previous file with comments | « chrome/browser/extensions/api/mdns/mdns_api_unittest.cc ('k') | chrome/browser/extensions/api/messaging/message_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698