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

Unified Diff: chrome/browser/ui/android/toolbar/toolbar_model_android.h

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/android/toolbar/toolbar_model_android.h
diff --git a/chrome/browser/ui/android/toolbar/toolbar_model_android.h b/chrome/browser/ui/android/toolbar/toolbar_model_android.h
index 5e03bdcea784157b7e504d883f56e24cd0b6374f..3ee6839d46daaf960864f67ab73a00d4e24d2b95 100644
--- a/chrome/browser/ui/android/toolbar/toolbar_model_android.h
+++ b/chrome/browser/ui/android/toolbar/toolbar_model_android.h
@@ -5,11 +5,12 @@
#ifndef CHROME_BROWSER_UI_ANDROID_TOOLBAR_TOOLBAR_MODEL_ANDROID_H_
#define CHROME_BROWSER_UI_ANDROID_TOOLBAR_TOOLBAR_MODEL_ANDROID_H_
+#include <memory>
+
#include "base/android/jni_android.h"
#include "base/android/jni_weak_ref.h"
#include "base/android/scoped_java_ref.h"
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "chrome/browser/ui/toolbar/chrome_toolbar_model_delegate.h"
#include "components/toolbar/toolbar_model.h"
@@ -39,7 +40,7 @@ class ToolbarModelAndroid : public ChromeToolbarModelDelegate {
static bool RegisterToolbarModelAndroid(JNIEnv* env);
private:
- scoped_ptr<ToolbarModel> toolbar_model_;
+ std::unique_ptr<ToolbarModel> toolbar_model_;
JavaObjectWeakGlobalRef weak_java_delegate_;
DISALLOW_IMPLICIT_CONSTRUCTORS(ToolbarModelAndroid);

Powered by Google App Engine
This is Rietveld 408576698