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

Unified Diff: chrome/browser/ui/search/instant_controller.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/instant_controller.cc
diff --git a/chrome/browser/ui/search/instant_controller.cc b/chrome/browser/ui/search/instant_controller.cc
index b0ccecab41cdda937a624d4c8f8f6be052a302b4..eb94fc8076c00e7739eaf80a01ac3bd437bce893 100644
--- a/chrome/browser/ui/search/instant_controller.cc
+++ b/chrome/browser/ui/search/instant_controller.cc
@@ -55,14 +55,10 @@ void EnsureSearchTermsAreSet(content::WebContents* contents,
return;
const content::NavigationEntry* entry = controller->GetLastCommittedEntry();
- scoped_ptr<content::NavigationEntry> transient =
+ std::unique_ptr<content::NavigationEntry> transient =
controller->CreateNavigationEntry(
- entry->GetURL(),
- entry->GetReferrer(),
- entry->GetTransitionType(),
- false,
- std::string(),
- contents->GetBrowserContext());
+ entry->GetURL(), entry->GetReferrer(), entry->GetTransitionType(),
+ false, std::string(), contents->GetBrowserContext());
transient->SetExtraData(sessions::kSearchTermsKey, search_terms);
controller->SetTransientEntry(std::move(transient));
« no previous file with comments | « chrome/browser/ui/search/instant_controller.h ('k') | chrome/browser/ui/search/instant_extended_interactive_uitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698