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

Unified Diff: chrome/browser/extensions/api/system_indicator/system_indicator_manager.cc

Issue 1549233002: Convert Pass()→std::move() in //chrome/browser/extensions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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/system_indicator/system_indicator_manager.cc
diff --git a/chrome/browser/extensions/api/system_indicator/system_indicator_manager.cc b/chrome/browser/extensions/api/system_indicator/system_indicator_manager.cc
index 9dfe3feef6db141dcdf0b20d6692a3816fd0941f..7ebe877baf23931c90901b15b2e47d30529e60ce 100644
--- a/chrome/browser/extensions/api/system_indicator/system_indicator_manager.cc
+++ b/chrome/browser/extensions/api/system_indicator/system_indicator_manager.cc
@@ -4,6 +4,8 @@
#include "chrome/browser/extensions/api/system_indicator/system_indicator_manager.h"
+#include <utility>
+
#include "base/memory/linked_ptr.h"
#include "base/strings/utf_string_conversions.h"
#include "chrome/browser/extensions/extension_action.h"
@@ -84,9 +86,8 @@ void ExtensionIndicatorIcon::OnStatusIconClicked() {
EventRouter* event_router = EventRouter::Get(profile_);
scoped_ptr<Event> event(new Event(events::SYSTEM_INDICATOR_ON_CLICKED,
system_indicator::OnClicked::kEventName,
- params.Pass(), profile_));
- event_router->DispatchEventToExtension(
- extension_->id(), event.Pass());
+ std::move(params), profile_));
+ event_router->DispatchEventToExtension(extension_->id(), std::move(event));
}
void ExtensionIndicatorIcon::OnIconUpdated() {

Powered by Google App Engine
This is Rietveld 408576698