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

Unified Diff: chrome/browser/android/service_tab_launcher.cc

Issue 2480293004: Mandate unique_ptr for base::IDMap in IDMapOwnPointer mode. (Closed)
Patch Set: Make changes requested by danakj, fix a few more headers Created 4 years 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/android/service_tab_launcher.cc
diff --git a/chrome/browser/android/service_tab_launcher.cc b/chrome/browser/android/service_tab_launcher.cc
index 92a8a1a2b9bf88fa570dd0c22f04714a6c702eea..d33e6213472e629c92c876a3ab80db27fffb4978 100644
--- a/chrome/browser/android/service_tab_launcher.cc
+++ b/chrome/browser/android/service_tab_launcher.cc
@@ -7,6 +7,7 @@
#include "base/android/context_utils.h"
#include "base/android/jni_string.h"
#include "base/callback.h"
+#include "base/memory/ptr_util.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/page_navigator.h"
#include "content/public/browser/web_contents.h"
@@ -63,7 +64,7 @@ void ServiceTabLauncher::LaunchTab(content::BrowserContext* browser_context,
ScopedJavaLocalRef<jobject> post_data;
int request_id = tab_launched_callbacks_.Add(
- new TabLaunchedCallback(callback));
+ base::MakeUnique<TabLaunchedCallback>(callback));
DCHECK_GE(request_id, 1);
Java_ServiceTabLauncher_launchTab(env, GetApplicationContext(), request_id,
« no previous file with comments | « chrome/browser/android/compositor/layer_title_cache.cc ('k') | chrome/browser/media/android/router/media_router_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698