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

Side by Side Diff: chrome/browser/chromeos/extensions/device_local_account_external_policy_loader.cc

Issue 1556783002: Convert Pass()→std::move() for CrOS extension code. (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/extensions/device_local_account_external_polic y_loader.h" 5 #include "chrome/browser/chromeos/extensions/device_local_account_external_polic y_loader.h"
6 6
7 #include <utility>
8
7 #include "base/callback.h" 9 #include "base/callback.h"
8 #include "base/logging.h" 10 #include "base/logging.h"
9 #include "base/prefs/pref_value_map.h" 11 #include "base/prefs/pref_value_map.h"
10 #include "base/values.h" 12 #include "base/values.h"
11 #include "chrome/browser/browser_process.h" 13 #include "chrome/browser/browser_process.h"
12 #include "chrome/browser/extensions/policy_handlers.h" 14 #include "chrome/browser/extensions/policy_handlers.h"
13 #include "components/policy/core/common/policy_map.h" 15 #include "components/policy/core/common/policy_map.h"
14 #include "extensions/browser/pref_names.h" 16 #include "extensions/browser/pref_names.h"
15 #include "net/url_request/url_request_context_getter.h" 17 #include "net/url_request/url_request_context_getter.h"
16 18
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 policy_handler.ApplyPolicySettings(policy_map, &pref_value_map); 103 policy_handler.ApplyPolicySettings(policy_map, &pref_value_map);
102 const base::Value* value = NULL; 104 const base::Value* value = NULL;
103 const base::DictionaryValue* dict = NULL; 105 const base::DictionaryValue* dict = NULL;
104 if (pref_value_map.GetValue(extensions::pref_names::kInstallForceList, 106 if (pref_value_map.GetValue(extensions::pref_names::kInstallForceList,
105 &value) && 107 &value) &&
106 value->GetAsDictionary(&dict)) { 108 value->GetAsDictionary(&dict)) {
107 prefs.reset(dict->DeepCopy()); 109 prefs.reset(dict->DeepCopy());
108 } 110 }
109 } 111 }
110 112
111 external_cache_->UpdateExtensionsList(prefs.Pass()); 113 external_cache_->UpdateExtensionsList(std::move(prefs));
112 } 114 }
113 115
114 } // namespace chromeos 116 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/extensions/default_app_order.cc ('k') | chrome/browser/chromeos/extensions/dictionary_event_router.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698