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

Unified Diff: chrome/browser/extensions/api/file_system/request_file_system_notification.cc

Issue 1556783002: Convert Pass()→std::move() for CrOS extension code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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/api/file_system/request_file_system_notification.cc
diff --git a/chrome/browser/extensions/api/file_system/request_file_system_notification.cc b/chrome/browser/extensions/api/file_system/request_file_system_notification.cc
index 7a5bbb5cf4b700a65dc69a45e6131c6df54860bf..b1cddde6d8f037051e7ae158264edfd0e5d8f410 100644
--- a/chrome/browser/extensions/api/file_system/request_file_system_notification.cc
+++ b/chrome/browser/extensions/api/file_system/request_file_system_notification.cc
@@ -4,6 +4,8 @@
#include "chrome/browser/extensions/api/file_system/request_file_system_notification.h"
+#include <utility>
+
#include "base/memory/ref_counted.h"
#include "base/strings/string16.h"
#include "base/strings/utf_string_conversions.h"
@@ -63,7 +65,7 @@ scoped_ptr<Notification> CreateAutoGrantedNotification(
notification_id),
data, delegate));
- return notification.Pass();
+ return notification;
}
} // namespace
@@ -83,7 +85,7 @@ void RequestFileSystemNotification::ShowAutoGrantedNotification(
extension, volume, writable,
request_file_system_notification.get() /* delegate */));
if (notification.get())
- request_file_system_notification->Show(notification.Pass());
+ request_file_system_notification->Show(std::move(notification));
}
void RequestFileSystemNotification::SetAppImage(const std::string& id,
@@ -94,7 +96,7 @@ void RequestFileSystemNotification::SetAppImage(const std::string& id,
if (pending_notification_.get()) {
pending_notification_->set_icon(*extension_icon_.get());
g_browser_process->message_center()->AddNotification(
- pending_notification_.Pass());
+ std::move(pending_notification_));
}
}
@@ -119,5 +121,5 @@ void RequestFileSystemNotification::Show(
pending_notification_->set_icon(*extension_icon_.get());
g_browser_process->message_center()->AddNotification(
- pending_notification_.Pass());
+ std::move(pending_notification_));
}

Powered by Google App Engine
This is Rietveld 408576698