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

Unified Diff: chrome/browser/extensions/api/tabs/tabs_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/tabs/tabs_api.cc
diff --git a/chrome/browser/extensions/api/tabs/tabs_api.cc b/chrome/browser/extensions/api/tabs/tabs_api.cc
index d91aa56f42541dc6c4458cd04c697c08070c2b0d..6b8c9447f5f3bc521e8dd748916da32e9148c3c5 100644
--- a/chrome/browser/extensions/api/tabs/tabs_api.cc
+++ b/chrome/browser/extensions/api/tabs/tabs_api.cc
@@ -5,9 +5,9 @@
#include "chrome/browser/extensions/api/tabs/tabs_api.h"
#include <stddef.h>
-
#include <algorithm>
#include <limits>
+#include <utility>
#include <vector>
#include "base/bind.h"
@@ -1823,7 +1823,7 @@ bool ExecuteCodeInTabFunction::Init() {
}
execute_tab_id_ = tab_id;
- details_ = details.Pass();
+ details_ = std::move(details);
set_host_id(HostID(HostID::EXTENSIONS, extension()->id()));
return true;
}
« no previous file with comments | « chrome/browser/extensions/api/tabs/app_window_controller.cc ('k') | chrome/browser/extensions/api/tabs/tabs_event_router.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698