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

Unified Diff: chrome/browser/ui/webui/settings/search_engines_handler.cc

Issue 2812953002: Stop passing raw pointers to base::Value API in c/b/ui (Closed)
Patch Set: No ListValue::SetDouble Created 3 years, 8 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: chrome/browser/ui/webui/settings/search_engines_handler.cc
diff --git a/chrome/browser/ui/webui/settings/search_engines_handler.cc b/chrome/browser/ui/webui/settings/search_engines_handler.cc
index 6d6e72eae3d213b6f8396585a1915a76bec637b7..077d940d7905736a8c5daf8dca586a1fc57e4e94 100644
--- a/chrome/browser/ui/webui/settings/search_engines_handler.cc
+++ b/chrome/browser/ui/webui/settings/search_engines_handler.cc
@@ -4,6 +4,8 @@
#include "chrome/browser/ui/webui/settings/search_engines_handler.h"
+#include <utility>
+
#include "base/bind.h"
#include "base/memory/ptr_util.h"
#include "base/metrics/field_trial.h"
@@ -262,7 +264,7 @@ SearchEnginesHandler::CreateDictionaryForEngine(int index, bool is_default) {
!extensions::ExtensionSystem::Get(profile)
->management_policy()
->MustRemainEnabled(extension, nullptr));
- dict->Set("extension", ext_info.release());
+ dict->Set("extension", std::move(ext_info));
}
}
return dict;

Powered by Google App Engine
This is Rietveld 408576698