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

Unified Diff: chrome/browser/chromeos/first_run/drive_first_run_controller.cc

Issue 1870793002: Convert //chrome/browser/chromeos 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/chromeos/first_run/drive_first_run_controller.cc
diff --git a/chrome/browser/chromeos/first_run/drive_first_run_controller.cc b/chrome/browser/chromeos/first_run/drive_first_run_controller.cc
index 72f85595c3a5f2afd7e42a6b7a57672cbccb73f8..9d1cbf5e1ff9c07e509c4ed4d2e53b0c38a0dc54 100644
--- a/chrome/browser/chromeos/first_run/drive_first_run_controller.cc
+++ b/chrome/browser/chromeos/first_run/drive_first_run_controller.cc
@@ -180,7 +180,7 @@ class DriveWebContentsManager : public content::WebContentsObserver,
Profile* profile_;
const std::string app_id_;
const std::string endpoint_url_;
- scoped_ptr<content::WebContents> web_contents_;
+ std::unique_ptr<content::WebContents> web_contents_;
content::NotificationRegistrar registrar_;
bool started_;
CompletionCallback completion_callback_;
@@ -459,7 +459,7 @@ void DriveFirstRunController::ShowNotification() {
data.buttons.push_back(message_center::ButtonInfo(
l10n_util::GetStringUTF16(IDS_DRIVE_OFFLINE_NOTIFICATION_BUTTON)));
ui::ResourceBundle& resource_bundle = ui::ResourceBundle::GetSharedInstance();
- scoped_ptr<message_center::Notification> notification(
+ std::unique_ptr<message_center::Notification> notification(
new message_center::Notification(
message_center::NOTIFICATION_TYPE_SIMPLE, kDriveOfflineNotificationId,
base::string16(), // title

Powered by Google App Engine
This is Rietveld 408576698