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

Unified Diff: chrome/browser/ui/cocoa/javascript_app_modal_dialog_cocoa.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/cocoa/javascript_app_modal_dialog_cocoa.h
diff --git a/chrome/browser/ui/cocoa/javascript_app_modal_dialog_cocoa.h b/chrome/browser/ui/cocoa/javascript_app_modal_dialog_cocoa.h
index d32c5404efc4a1ca974733f900ccbd56fff88b29..696d815b2911e55c6abc314f6d358e8ae81849a7 100644
--- a/chrome/browser/ui/cocoa/javascript_app_modal_dialog_cocoa.h
+++ b/chrome/browser/ui/cocoa/javascript_app_modal_dialog_cocoa.h
@@ -5,10 +5,11 @@
#ifndef CHROME_BROWSER_UI_COCOA_JAVASCRIPT_APP_MODAL_DIALOG_COCOA_H_
#define CHROME_BROWSER_UI_COCOA_JAVASCRIPT_APP_MODAL_DIALOG_COCOA_H_
+#include <memory>
+
#include "base/logging.h"
#include "base/mac/scoped_nsobject.h"
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "components/app_modal/native_app_modal_dialog.h"
class AppModalDialogHelper;
@@ -44,8 +45,8 @@ class JavaScriptAppModalDialogCocoa : public app_modal::NativeAppModalDialog {
// Returns the NSAlert associated with the modal dialog.
NSAlert* GetAlert() const;
- scoped_ptr<app_modal::JavaScriptAppModalDialog> dialog_;
- scoped_ptr<AppModalDialogHelper> popup_helper_;
+ std::unique_ptr<app_modal::JavaScriptAppModalDialog> dialog_;
+ std::unique_ptr<AppModalDialogHelper> popup_helper_;
// Created in the constructor and destroyed in the destructor.
base::scoped_nsobject<JavaScriptAppModalDialogHelper> helper_;

Powered by Google App Engine
This is Rietveld 408576698