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

Side by Side Diff: chrome/browser/extensions/api/messaging/native_messaging_policy_handler.cc

Issue 1658793002: Update chrome for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/extensions/api/messaging/native_messaging_policy_handle r.h" 5 #include "chrome/browser/extensions/api/messaging/native_messaging_policy_handle r.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/prefs/pref_value_map.h"
11 #include "chrome/browser/extensions/api/messaging/native_messaging_host_manifest .h" 10 #include "chrome/browser/extensions/api/messaging/native_messaging_host_manifest .h"
12 #include "chrome/browser/extensions/external_policy_loader.h" 11 #include "chrome/browser/extensions/external_policy_loader.h"
13 #include "components/policy/core/browser/policy_error_map.h" 12 #include "components/policy/core/browser/policy_error_map.h"
14 #include "components/policy/core/common/policy_map.h" 13 #include "components/policy/core/common/policy_map.h"
14 #include "components/prefs/pref_value_map.h"
15 #include "grit/components_strings.h" 15 #include "grit/components_strings.h"
16 #include "policy/policy_constants.h" 16 #include "policy/policy_constants.h"
17 17
18 namespace extensions { 18 namespace extensions {
19 19
20 NativeMessagingHostListPolicyHandler::NativeMessagingHostListPolicyHandler( 20 NativeMessagingHostListPolicyHandler::NativeMessagingHostListPolicyHandler(
21 const char* policy_name, 21 const char* policy_name,
22 const char* pref_path, 22 const char* pref_path,
23 bool allow_wildcards) 23 bool allow_wildcards)
24 : policy::TypeCheckingPolicyHandler(policy_name, base::Value::TYPE_LIST), 24 : policy::TypeCheckingPolicyHandler(policy_name, base::Value::TYPE_LIST),
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 filtered_list->Append(new base::StringValue(name)); 85 filtered_list->Append(new base::StringValue(name));
86 } 86 }
87 87
88 if (names) 88 if (names)
89 *names = std::move(filtered_list); 89 *names = std::move(filtered_list);
90 90
91 return true; 91 return true;
92 } 92 }
93 93
94 } // namespace extensions 94 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698