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

Unified Diff: extensions/renderer/event_bindings.cc

Issue 1308013005: Add scoped_ptr-safe base::Value to Dictionary/List conversion functions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Made conversions static members. Created 5 years, 3 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: extensions/renderer/event_bindings.cc
diff --git a/extensions/renderer/event_bindings.cc b/extensions/renderer/event_bindings.cc
index 229a1c89b6f99cab1b178ec4b3fb791ab047d015..82e63471b5cddf9c765474a3c011d4ef5ee55163 100644
--- a/extensions/renderer/event_bindings.cc
+++ b/extensions/renderer/event_bindings.cc
@@ -265,7 +265,7 @@ void EventBindings::AttachFilteredEvent(
args.GetReturnValue().Set(static_cast<int32_t>(-1));
return;
}
- filter.reset(static_cast<base::DictionaryValue*>(filter_value.release()));
+ filter = base::DictionaryValue::From(filter_value.Pass());
}
// Hold onto a weak reference to |filter| so that it can be used after passing
« no previous file with comments | « extensions/common/file_util_unittest.cc ('k') | extensions/renderer/guest_view/guest_view_internal_custom_bindings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698