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

Unified Diff: chrome/browser/extensions/extension_action.cc

Issue 2841623003: Remove base::Value::Get{Buffer,Size} (Closed)
Patch Set: std::vector::assign instead of std::vector::operator= 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 | « chrome/browser/extensions/api/idltest/idltest_api.cc ('k') | content/child/v8_value_converter_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_action.cc
diff --git a/chrome/browser/extensions/extension_action.cc b/chrome/browser/extensions/extension_action.cc
index 00345b4c7622513825faa4b09d6850cbe214e659..49b8146c4db3632d64121661e524bfc0ee185e9a 100644
--- a/chrome/browser/extensions/extension_action.cc
+++ b/chrome/browser/extensions/extension_action.cc
@@ -130,7 +130,8 @@ bool ExtensionAction::ParseIconFromCanvasDictionary(
std::string binary_string64;
IPC::Message pickle;
if (iter.value().GetAsBinary(&image_data)) {
- pickle = IPC::Message(image_data->GetBuffer(), image_data->GetSize());
+ pickle = IPC::Message(image_data->GetBlob().data(),
+ image_data->GetBlob().size());
} else if (iter.value().GetAsString(&binary_string64)) {
std::string binary_string;
if (!base::Base64Decode(binary_string64, &binary_string))
« no previous file with comments | « chrome/browser/extensions/api/idltest/idltest_api.cc ('k') | content/child/v8_value_converter_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698