Use shortcut way to create scoped_ptr.

This commit is contained in:
Cheng Zhao 2014-07-11 21:55:57 +08:00
parent 24c1544ca5
commit e553e11226

View file

@ -59,7 +59,7 @@ InspectableWebContentsView* CreateInspectableContentsView(
InspectableWebContentsImpl* inspectable_web_contents_impl);
void InspectableWebContentsImpl::RegisterPrefs(PrefRegistrySimple* registry) {
scoped_ptr<base::DictionaryValue> bounds_dict(new base::DictionaryValue);
auto bounds_dict = make_scoped_ptr(new base::DictionaryValue);
RectToDictionary(gfx::Rect(0, 0, 800, 600), bounds_dict.get());
registry->RegisterDictionaryPref(kDevToolsBoundsPref, bounds_dict.release());
}