Use shortcut way to create scoped_ptr.
This commit is contained in:
parent
24c1544ca5
commit
e553e11226
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@ InspectableWebContentsView* CreateInspectableContentsView(
|
||||||
InspectableWebContentsImpl* inspectable_web_contents_impl);
|
InspectableWebContentsImpl* inspectable_web_contents_impl);
|
||||||
|
|
||||||
void InspectableWebContentsImpl::RegisterPrefs(PrefRegistrySimple* registry) {
|
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());
|
RectToDictionary(gfx::Rect(0, 0, 800, 600), bounds_dict.get());
|
||||||
registry->RegisterDictionaryPref(kDevToolsBoundsPref, bounds_dict.release());
|
registry->RegisterDictionaryPref(kDevToolsBoundsPref, bounds_dict.release());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue