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

Unified Diff: chrome/browser/ui/passwords/manage_passwords_bubble_model.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/passwords/manage_passwords_bubble_model.h
diff --git a/chrome/browser/ui/passwords/manage_passwords_bubble_model.h b/chrome/browser/ui/passwords/manage_passwords_bubble_model.h
index d9bb3246edbd146e0a0bd09dbdedbf386a0006be..5c897e6a7baf8a5a204f0c850949a7adb71f9b4b 100644
--- a/chrome/browser/ui/passwords/manage_passwords_bubble_model.h
+++ b/chrome/browser/ui/passwords/manage_passwords_bubble_model.h
@@ -111,7 +111,9 @@ class ManagePasswordsBubbleModel : public content::WebContentsObserver {
return dismissal_reason_;
}
- void set_clock(scoped_ptr<base::Clock> clock) { clock_ = std::move(clock); }
+ void set_clock(std::unique_ptr<base::Clock> clock) {
+ clock_ = std::move(clock);
+ }
#endif
private:
@@ -149,7 +151,7 @@ class ManagePasswordsBubbleModel : public content::WebContentsObserver {
password_manager::InteractionsStats interaction_stats_;
// Used to retrieve the current time, in base::Time units.
- scoped_ptr<base::Clock> clock_;
+ std::unique_ptr<base::Clock> clock_;
DISALLOW_COPY_AND_ASSIGN(ManagePasswordsBubbleModel);
};

Powered by Google App Engine
This is Rietveld 408576698