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

Unified Diff: chrome/browser/extensions/api/automation_internal/automation_event_router.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/automation_internal/automation_event_router.cc
diff --git a/chrome/browser/extensions/api/automation_internal/automation_event_router.cc b/chrome/browser/extensions/api/automation_internal/automation_event_router.cc
index b7d32853ca0e8783f0cb3f40cf4e36504757e461..4c58c721ce98403ba52312c79a5bf0d548a7d957 100644
--- a/chrome/browser/extensions/api/automation_internal/automation_event_router.cc
+++ b/chrome/browser/extensions/api/automation_internal/automation_event_router.cc
@@ -95,9 +95,9 @@ void AutomationEventRouter::DispatchTreeDestroyedEvent(
scoped_ptr<Event> event(new Event(
events::AUTOMATION_INTERNAL_ON_ACCESSIBILITY_TREE_DESTROYED,
api::automation_internal::OnAccessibilityTreeDestroyed::kEventName,
- args.Pass()));
+ std::move(args)));
event->restrict_to_browser_context = browser_context;
- EventRouter::Get(browser_context)->BroadcastEvent(event.Pass());
+ EventRouter::Get(browser_context)->BroadcastEvent(std::move(event));
}
AutomationEventRouter::AutomationListener::AutomationListener() {

Powered by Google App Engine
This is Rietveld 408576698