From adddff3ee254f90a7eeaadd1795dfd426f60b1af Mon Sep 17 00:00:00 2001 From: Aleksei Kuzmin Date: Sat, 17 Jun 2017 01:12:22 +0300 Subject: [PATCH] Move PrefRegistrySimple to use unique_ptr https://codereview.chromium.org/2784513002 --- brightray/browser/inspectable_web_contents_impl.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/brightray/browser/inspectable_web_contents_impl.cc b/brightray/browser/inspectable_web_contents_impl.cc index 23aefd3450ee..89ff391df904 100644 --- a/brightray/browser/inspectable_web_contents_impl.cc +++ b/brightray/browser/inspectable_web_contents_impl.cc @@ -3,6 +3,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE-CHROMIUM file. +#include + #include "brightray/browser/inspectable_web_contents_impl.h" #include "base/json/json_reader.h" @@ -192,7 +194,7 @@ InspectableWebContentsView* CreateInspectableContentsView( void InspectableWebContentsImpl::RegisterPrefs(PrefRegistrySimple* registry) { std::unique_ptr bounds_dict(new base::DictionaryValue); RectToDictionary(gfx::Rect(0, 0, 800, 600), bounds_dict.get()); - registry->RegisterDictionaryPref(kDevToolsBoundsPref, bounds_dict.release()); + registry->RegisterDictionaryPref(kDevToolsBoundsPref, std::move(bounds_dict)); registry->RegisterDoublePref(kDevToolsZoomPref, 0.); registry->RegisterDictionaryPref(kDevToolsPreferences); }