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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 #include "chrome/test/base/test_switches.h" | 82 #include "chrome/test/base/test_switches.h" |
83 #include "chrome/test/base/ui_test_utils.h" | 83 #include "chrome/test/base/ui_test_utils.h" |
84 #include "components/infobars/core/infobar.h" | 84 #include "components/infobars/core/infobar.h" |
85 #include "components/policy/core/browser/browser_policy_connector.h" | 85 #include "components/policy/core/browser/browser_policy_connector.h" |
86 #include "components/policy/core/common/external_data_fetcher.h" | 86 #include "components/policy/core/common/external_data_fetcher.h" |
87 #include "components/policy/core/common/mock_configuration_policy_provider.h" | 87 #include "components/policy/core/common/mock_configuration_policy_provider.h" |
88 #include "components/policy/core/common/policy_map.h" | 88 #include "components/policy/core/common/policy_map.h" |
89 #include "components/policy/core/common/policy_pref_names.h" | 89 #include "components/policy/core/common/policy_pref_names.h" |
90 #include "components/policy/core/common/policy_service.h" | 90 #include "components/policy/core/common/policy_service.h" |
91 #include "components/policy/core/common/policy_service_impl.h" | 91 #include "components/policy/core/common/policy_service_impl.h" |
92 #include "components/translate/core/browser/language_state.h" | |
93 #include "content/public/browser/browser_child_process_host_iterator.h" | 92 #include "content/public/browser/browser_child_process_host_iterator.h" |
94 #include "content/public/browser/browser_context.h" | 93 #include "content/public/browser/browser_context.h" |
95 #include "content/public/browser/browser_thread.h" | 94 #include "content/public/browser/browser_thread.h" |
96 #include "content/public/browser/child_process_data.h" | 95 #include "content/public/browser/child_process_data.h" |
97 #include "content/public/browser/download_item.h" | 96 #include "content/public/browser/download_item.h" |
98 #include "content/public/browser/download_manager.h" | 97 #include "content/public/browser/download_manager.h" |
99 #include "content/public/browser/gpu_data_manager.h" | 98 #include "content/public/browser/gpu_data_manager.h" |
100 #include "content/public/browser/notification_details.h" | 99 #include "content/public/browser/notification_details.h" |
101 #include "content/public/browser/notification_observer.h" | 100 #include "content/public/browser/notification_observer.h" |
102 #include "content/public/browser/notification_registrar.h" | 101 #include "content/public/browser/notification_registrar.h" |
(...skipping 2868 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2971 PrefService* prefs = browser()->profile()->GetPrefs(); | 2970 PrefService* prefs = browser()->profile()->GetPrefs(); |
2972 EXPECT_TRUE(extensions::NativeMessageProcessHost::IsHostAllowed( | 2971 EXPECT_TRUE(extensions::NativeMessageProcessHost::IsHostAllowed( |
2973 prefs, "host.name")); | 2972 prefs, "host.name")); |
2974 EXPECT_FALSE(extensions::NativeMessageProcessHost::IsHostAllowed( | 2973 EXPECT_FALSE(extensions::NativeMessageProcessHost::IsHostAllowed( |
2975 prefs, "other.host.name")); | 2974 prefs, "other.host.name")); |
2976 } | 2975 } |
2977 | 2976 |
2978 #endif // !defined(CHROME_OS) | 2977 #endif // !defined(CHROME_OS) |
2979 | 2978 |
2980 } // namespace policy | 2979 } // namespace policy |
OLD | NEW |