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

Unified Diff: chrome/browser/sessions/persistent_tab_restore_service_unittest.cc

Issue 1551503002: Convert Pass()→std::move() in //chrome (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/sessions/persistent_tab_restore_service_unittest.cc
diff --git a/chrome/browser/sessions/persistent_tab_restore_service_unittest.cc b/chrome/browser/sessions/persistent_tab_restore_service_unittest.cc
index 4f86cdc415c6c63aada3f1d0db80e162bf97efab..17e99a10bb28e9d28d61d3540dacf61d6ffca76a 100644
--- a/chrome/browser/sessions/persistent_tab_restore_service_unittest.cc
+++ b/chrome/browser/sessions/persistent_tab_restore_service_unittest.cc
@@ -5,8 +5,8 @@
#include "components/sessions/core/persistent_tab_restore_service.h"
#include <stddef.h>
-
#include <string>
+#include <utility>
#include "base/compiler_specific.h"
#include "base/macros.h"
@@ -159,7 +159,8 @@ class PersistentTabRestoreServiceTest : public ChromeRenderViewHostTestHarness {
// tab is marked as pinned in the session service.
void CreateSessionServiceWithOneWindow(bool pinned) {
scoped_ptr<SessionService> session_service(new SessionService(profile()));
- SessionServiceFactory::SetForTestProfile(profile(), session_service.Pass());
+ SessionServiceFactory::SetForTestProfile(profile(),
+ std::move(session_service));
AddWindowWithOneTabToSessionService(pinned);

Powered by Google App Engine
This is Rietveld 408576698