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

Unified Diff: chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc

Issue 2847173004: Switch SupportsUserData uses to use unique_ptr. (Closed)
Patch Set: 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/views/tabs/tab_drag_controller_interactive_uitest.cc
diff --git a/chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc b/chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc
index 8d17f985549d521883d95a57b4db315012b1e828..6b1ed11ab3aff21d96df3b563b179708b39d15d3 100644
--- a/chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc
+++ b/chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc
@@ -125,8 +125,9 @@ class QuitDraggingObserver : public content::NotificationObserver {
};
void SetID(WebContents* web_contents, int id) {
- web_contents->SetUserData(&kTabDragControllerInteractiveUITestUserDataKey,
- new TabDragControllerInteractiveUITestUserData(id));
+ web_contents->SetUserData(
+ &kTabDragControllerInteractiveUITestUserDataKey,
+ base::MakeUnique<TabDragControllerInteractiveUITestUserData>(id));
}
void ResetIDs(TabStripModel* model, int start) {

Powered by Google App Engine
This is Rietveld 408576698