| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <algorithm> | 5 #include <algorithm> |
| 6 #include <string> | 6 #include <string> |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 #include "chrome/common/chrome_paths.h" | 75 #include "chrome/common/chrome_paths.h" |
| 76 #include "chrome/common/chrome_switches.h" | 76 #include "chrome/common/chrome_switches.h" |
| 77 #include "chrome/common/content_settings.h" | 77 #include "chrome/common/content_settings.h" |
| 78 #include "chrome/common/content_settings_pattern.h" | 78 #include "chrome/common/content_settings_pattern.h" |
| 79 #include "chrome/common/extensions/extension_constants.h" | 79 #include "chrome/common/extensions/extension_constants.h" |
| 80 #include "chrome/common/pref_names.h" | 80 #include "chrome/common/pref_names.h" |
| 81 #include "chrome/common/url_constants.h" | 81 #include "chrome/common/url_constants.h" |
| 82 #include "chrome/test/base/in_process_browser_test.h" | 82 #include "chrome/test/base/in_process_browser_test.h" |
| 83 #include "chrome/test/base/test_switches.h" | 83 #include "chrome/test/base/test_switches.h" |
| 84 #include "chrome/test/base/ui_test_utils.h" | 84 #include "chrome/test/base/ui_test_utils.h" |
| 85 #include "components/bookmarks/bookmark_pref_names.h" |
| 85 #include "components/policy/core/browser/browser_policy_connector.h" | 86 #include "components/policy/core/browser/browser_policy_connector.h" |
| 86 #include "components/policy/core/common/external_data_fetcher.h" | 87 #include "components/policy/core/common/external_data_fetcher.h" |
| 87 #include "components/policy/core/common/mock_configuration_policy_provider.h" | 88 #include "components/policy/core/common/mock_configuration_policy_provider.h" |
| 88 #include "components/policy/core/common/policy_map.h" | 89 #include "components/policy/core/common/policy_map.h" |
| 89 #include "components/policy/core/common/policy_pref_names.h" | 90 #include "components/policy/core/common/policy_pref_names.h" |
| 90 #include "components/policy/core/common/policy_service.h" | 91 #include "components/policy/core/common/policy_service.h" |
| 91 #include "components/policy/core/common/policy_service_impl.h" | 92 #include "components/policy/core/common/policy_service_impl.h" |
| 92 #include "content/public/browser/browser_child_process_host_iterator.h" | 93 #include "content/public/browser/browser_child_process_host_iterator.h" |
| 93 #include "content/public/browser/browser_context.h" | 94 #include "content/public/browser/browser_context.h" |
| 94 #include "content/public/browser/browser_thread.h" | 95 #include "content/public/browser/browser_thread.h" |
| (...skipping 2879 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2974 PrefService* prefs = browser()->profile()->GetPrefs(); | 2975 PrefService* prefs = browser()->profile()->GetPrefs(); |
| 2975 EXPECT_TRUE(extensions::NativeMessageProcessHost::IsHostAllowed( | 2976 EXPECT_TRUE(extensions::NativeMessageProcessHost::IsHostAllowed( |
| 2976 prefs, "host.name")); | 2977 prefs, "host.name")); |
| 2977 EXPECT_FALSE(extensions::NativeMessageProcessHost::IsHostAllowed( | 2978 EXPECT_FALSE(extensions::NativeMessageProcessHost::IsHostAllowed( |
| 2978 prefs, "other.host.name")); | 2979 prefs, "other.host.name")); |
| 2979 } | 2980 } |
| 2980 | 2981 |
| 2981 #endif // !defined(CHROME_OS) | 2982 #endif // !defined(CHROME_OS) |
| 2982 | 2983 |
| 2983 } // namespace policy | 2984 } // namespace policy |
| OLD | NEW |