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

Unified Diff: chrome/browser/ui/webui/foreign_session_handler.cc

Issue 1550053002: Convert Pass()→std::move() in //chrome/browser/ui (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/ui/webui/foreign_session_handler.cc
diff --git a/chrome/browser/ui/webui/foreign_session_handler.cc b/chrome/browser/ui/webui/foreign_session_handler.cc
index e731f6b4e703bc21316099f32dd46df3cb881617..076f89f636251815ad77b600cb9528b5d324768c 100644
--- a/chrome/browser/ui/webui/foreign_session_handler.cc
+++ b/chrome/browser/ui/webui/foreign_session_handler.cc
@@ -70,7 +70,7 @@ scoped_ptr<base::DictionaryValue> SessionTabToValue(
// confusion with the ID corresponding to a session. Investigate all the
// places (C++ and JS) where this is being used. (http://crbug.com/154865).
dictionary->SetInteger("sessionId", tab.tab_id.id());
- return dictionary.Pass();
+ return dictionary;
}
// Helper for initializing a boilerplate SessionWindow JSON compatible object.
@@ -94,7 +94,7 @@ scoped_ptr<base::DictionaryValue> BuildWindowData(
ui::TimeFormat::LENGTH_SHORT, last_synced));
dictionary->SetInteger("sessionId", window_id);
- return dictionary.Pass();
+ return dictionary;
}
// Helper method to create JSON compatible objects from SessionWindow objects.
@@ -118,7 +118,7 @@ scoped_ptr<base::DictionaryValue> SessionWindowToValue(
scoped_ptr<base::DictionaryValue> dictionary(
BuildWindowData(window.timestamp, window.window_id.id()));
dictionary->Set("tabs", tab_values.release());
- return dictionary.Pass();
+ return dictionary;
}
} // namespace

Powered by Google App Engine
This is Rietveld 408576698