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

Unified Diff: chrome/browser/extensions/webstore_install_with_prompt.h

Issue 1871713002: Convert //chrome/browser/extensions from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and fix header 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/extensions/webstore_install_with_prompt.h
diff --git a/chrome/browser/extensions/webstore_install_with_prompt.h b/chrome/browser/extensions/webstore_install_with_prompt.h
index 5973a9bd35dabc31d84085ced1921733c03a0857..ce4976ad1531c5628f42c62791463cfb00540230 100644
--- a/chrome/browser/extensions/webstore_install_with_prompt.h
+++ b/chrome/browser/extensions/webstore_install_with_prompt.h
@@ -5,8 +5,9 @@
#ifndef CHROME_BROWSER_EXTENSIONS_WEBSTORE_INSTALL_WITH_PROMPT_H_
#define CHROME_BROWSER_EXTENSIONS_WEBSTORE_INSTALL_WITH_PROMPT_H_
+#include <memory>
+
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "chrome/browser/extensions/webstore_standalone_installer.h"
#include "chrome/browser/ui/native_window_tracker.h"
#include "ui/gfx/native_widget_types.h"
@@ -55,9 +56,9 @@ class WebstoreInstallWithPrompt : public WebstoreStandaloneInstaller {
bool ShouldShowPostInstallUI() const override;
bool ShouldShowAppInstalledBubble() const override;
content::WebContents* GetWebContents() const override;
- scoped_ptr<ExtensionInstallPrompt::Prompt> CreateInstallPrompt()
+ std::unique_ptr<ExtensionInstallPrompt::Prompt> CreateInstallPrompt()
const override;
- scoped_ptr<ExtensionInstallPrompt> CreateInstallUI() override;
+ std::unique_ptr<ExtensionInstallPrompt> CreateInstallUI() override;
bool CheckInlineInstallPermitted(const base::DictionaryValue& webstore_data,
std::string* error) const override;
bool CheckRequestorPermitted(const base::DictionaryValue& webstore_data,
@@ -69,10 +70,10 @@ class WebstoreInstallWithPrompt : public WebstoreStandaloneInstaller {
GURL dummy_requestor_url_;
// A non-visible WebContents used to download data from the webstore.
- scoped_ptr<content::WebContents> dummy_web_contents_;
+ std::unique_ptr<content::WebContents> dummy_web_contents_;
gfx::NativeWindow parent_window_;
- scoped_ptr<NativeWindowTracker> parent_window_tracker_;
+ std::unique_ptr<NativeWindowTracker> parent_window_tracker_;
DISALLOW_COPY_AND_ASSIGN(WebstoreInstallWithPrompt);
};
« no previous file with comments | « chrome/browser/extensions/webstore_install_helper.cc ('k') | chrome/browser/extensions/webstore_install_with_prompt.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698