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

Unified Diff: chrome/browser/download/notification/download_item_notification.cc

Issue 1552863003: Global conversion of Pass()→std::move(): CrOS edition (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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
« no previous file with comments | « no previous file | chrome/browser/download/notification/download_item_notification_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/download/notification/download_item_notification.cc
diff --git a/chrome/browser/download/notification/download_item_notification.cc b/chrome/browser/download/notification/download_item_notification.cc
index f26854f95c14e72f46247e329de2f8d0b2410ee4..4c48127607d9699a6f849a8ea0cf2bfb89c18333 100644
--- a/chrome/browser/download/notification/download_item_notification.cc
+++ b/chrome/browser/download/notification/download_item_notification.cc
@@ -414,8 +414,7 @@ void DownloadItemNotification::UpdateNotificationData(
UpdateNotificationIcon();
std::vector<message_center::ButtonInfo> notification_actions;
- scoped_ptr<std::vector<DownloadCommands::Command>> actions(
- GetExtraActions().Pass());
+ scoped_ptr<std::vector<DownloadCommands::Command>> actions(GetExtraActions());
button_actions_.reset(new std::vector<DownloadCommands::Command>);
for (auto it = actions->begin(); it != actions->end(); it++) {
@@ -643,7 +642,7 @@ DownloadItemNotification::GetExtraActions() const {
actions->push_back(DownloadCommands::DISCARD);
actions->push_back(DownloadCommands::KEEP);
}
- return actions.Pass();
+ return actions;
}
switch (item_->GetState()) {
@@ -667,7 +666,7 @@ DownloadItemNotification::GetExtraActions() const {
case content::DownloadItem::MAX_DOWNLOAD_STATE:
NOTREACHED();
}
- return actions.Pass();
+ return actions;
}
base::string16 DownloadItemNotification::GetTitle() const {
« no previous file with comments | « no previous file | chrome/browser/download/notification/download_item_notification_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698