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

Side by Side Diff: chrome/browser/chromeos/policy/login_profile_policy_provider.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, 11 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/chromeos/policy/login_profile_policy_provider.h" 5 #include "chrome/browser/chromeos/policy/login_profile_policy_provider.h"
6 6
7 #include <string> 7 #include <string>
8 #include <utility>
8 9
9 #include "base/bind.h" 10 #include "base/bind.h"
10 #include "base/callback.h" 11 #include "base/callback.h"
11 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
12 #include "base/values.h" 13 #include "base/values.h"
13 #include "chromeos/dbus/power_policy_controller.h" 14 #include "chromeos/dbus/power_policy_controller.h"
14 #include "components/policy/core/browser/policy_error_map.h" 15 #include "components/policy/core/browser/policy_error_map.h"
15 #include "components/policy/core/common/external_data_fetcher.h" 16 #include "components/policy/core/common/external_data_fetcher.h"
16 #include "components/policy/core/common/policy_bundle.h" 17 #include "components/policy/core/common/policy_bundle.h"
17 #include "components/policy/core/common/policy_map.h" 18 #include "components/policy/core/common/policy_map.h"
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 196
196 // |policy_value| is expected to be a valid value for the 197 // |policy_value| is expected to be a valid value for the
197 // PowerManagementIdleSettings policy now. 198 // PowerManagementIdleSettings policy now.
198 if (!policy_value->empty()) { 199 if (!policy_value->empty()) {
199 ApplyValueAsMandatoryPolicy(policy_value.get(), 200 ApplyValueAsMandatoryPolicy(policy_value.get(),
200 key::kPowerManagementIdleSettings, 201 key::kPowerManagementIdleSettings,
201 &user_policy_map); 202 &user_policy_map);
202 } 203 }
203 } 204 }
204 205
205 UpdatePolicy(bundle.Pass()); 206 UpdatePolicy(std::move(bundle));
206 } 207 }
207 208
208 } // namespace policy 209 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698