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

Unified Diff: chrome/browser/chromeos/policy/device_status_collector.cc

Issue 1557693002: Convert Pass()→std::move() in //chrome/browser/chromeos/policy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 months 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/chromeos/policy/device_status_collector.cc
diff --git a/chrome/browser/chromeos/policy/device_status_collector.cc b/chrome/browser/chromeos/policy/device_status_collector.cc
index bc0d2e3412073193a3c7288154da724b92dad429..ae70fac63b637df43a81c91f602492a4490a3871 100644
--- a/chrome/browser/chromeos/policy/device_status_collector.cc
+++ b/chrome/browser/chromeos/policy/device_status_collector.cc
@@ -226,7 +226,7 @@ GetCurrentKioskDeviceLocalAccount(chromeos::CrosSettings* settings) {
if (AccountId::FromUserEmail(device_local_account.user_id) ==
user->GetAccountId()) {
return make_scoped_ptr(
- new policy::DeviceLocalAccount(device_local_account)).Pass();
+ new policy::DeviceLocalAccount(device_local_account));
}
}
LOG(WARNING) << "Kiosk app not found in list of device-local accounts";
@@ -540,7 +540,7 @@ DeviceStatusCollector::GetAutoLaunchedKioskSessionInfo() {
if (chromeos::KioskAppManager::Get()->GetApp(account->kiosk_app_id,
&current_app) &&
current_app.was_auto_launched_with_zero_delay) {
- return account.Pass();
+ return account;
}
}
// No auto-launched kiosk session active.

Powered by Google App Engine
This is Rietveld 408576698