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

Unified Diff: chrome/browser/ui/search/search_tab_helper.cc

Issue 1865213004: Convert //chrome/browser/ui from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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/search/search_tab_helper.cc
diff --git a/chrome/browser/ui/search/search_tab_helper.cc b/chrome/browser/ui/search/search_tab_helper.cc
index d1baeac23add70717807ce55bdbe3efb48ada55c..a8e11542584c111bf58b7b530bfad58df404fdf8 100644
--- a/chrome/browser/ui/search/search_tab_helper.cc
+++ b/chrome/browser/ui/search/search_tab_helper.cc
@@ -4,10 +4,11 @@
#include "chrome/browser/ui/search/search_tab_helper.h"
+#include <memory>
#include <set>
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
+#include "base/memory/ptr_util.h"
#include "base/metrics/histogram.h"
#include "base/strings/string16.h"
#include "base/strings/string_util.h"
@@ -148,9 +149,10 @@ SearchTabHelper::SearchTabHelper(content::WebContents* web_contents)
: WebContentsObserver(web_contents),
is_search_enabled_(search::IsInstantExtendedAPIEnabled()),
web_contents_(web_contents),
- ipc_router_(web_contents,
- this,
- make_scoped_ptr(new SearchIPCRouterPolicyImpl(web_contents))),
+ ipc_router_(
+ web_contents,
+ this,
+ base::WrapUnique(new SearchIPCRouterPolicyImpl(web_contents))),
instant_service_(NULL),
delegate_(NULL),
omnibox_has_focus_fn_(&OmniboxHasFocus) {
« no previous file with comments | « chrome/browser/ui/search/search_ipc_router_unittest.cc ('k') | chrome/browser/ui/search/search_tab_helper_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698