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

Unified Diff: chrome/browser/extensions/api/extension_action/extension_action_api.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/extension_action/extension_action_api.cc
diff --git a/chrome/browser/extensions/api/extension_action/extension_action_api.cc b/chrome/browser/extensions/api/extension_action/extension_action_api.cc
index eb0660779c5e663b634026cbacacbf17e5ab5fa3..fcca92186379f7f597be774b983dca442c75efe5 100644
--- a/chrome/browser/extensions/api/extension_action/extension_action_api.cc
+++ b/chrome/browser/extensions/api/extension_action/extension_action_api.cc
@@ -5,6 +5,7 @@
#include "chrome/browser/extensions/api/extension_action/extension_action_api.h"
#include <stddef.h>
+#include <utility>
#include "base/lazy_instance.h"
#include "base/location.h"
@@ -307,11 +308,11 @@ void ExtensionActionAPI::DispatchEventToExtension(
return;
scoped_ptr<Event> event(
- new Event(histogram_value, event_name, event_args.Pass()));
+ new Event(histogram_value, event_name, std::move(event_args)));
event->restrict_to_browser_context = context;
event->user_gesture = EventRouter::USER_GESTURE_ENABLED;
EventRouter::Get(context)
- ->DispatchEventToExtension(extension_id, event.Pass());
+ ->DispatchEventToExtension(extension_id, std::move(event));
}
void ExtensionActionAPI::ExtensionActionExecuted(
@@ -342,7 +343,7 @@ void ExtensionActionAPI::ExtensionActionExecuted(
DispatchEventToExtension(web_contents->GetBrowserContext(),
extension_action.extension_id(), histogram_value,
- event_name, args.Pass());
+ event_name, std::move(args));
}
}

Powered by Google App Engine
This is Rietveld 408576698