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); }