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

Side by Side Diff: chrome/browser/policy/policy_browsertest.cc

Issue 1191373002: Componentize AutocompleteController and its supporting cast (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@prep_builtin_provider_for_c14n
Patch Set: Rebase Created 5 years, 5 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 (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 10 matching lines...) Expand all
21 #include "base/strings/string16.h" 21 #include "base/strings/string16.h"
22 #include "base/strings/string_number_conversions.h" 22 #include "base/strings/string_number_conversions.h"
23 #include "base/strings/string_util.h" 23 #include "base/strings/string_util.h"
24 #include "base/strings/stringprintf.h" 24 #include "base/strings/stringprintf.h"
25 #include "base/strings/utf_string_conversions.h" 25 #include "base/strings/utf_string_conversions.h"
26 #include "base/test/test_file_util.h" 26 #include "base/test/test_file_util.h"
27 #include "base/threading/sequenced_worker_pool.h" 27 #include "base/threading/sequenced_worker_pool.h"
28 #include "base/time/time.h" 28 #include "base/time/time.h"
29 #include "base/values.h" 29 #include "base/values.h"
30 #include "chrome/app/chrome_command_ids.h" 30 #include "chrome/app/chrome_command_ids.h"
31 #include "chrome/browser/autocomplete/autocomplete_controller.h"
32 #include "chrome/browser/background/background_contents_service.h" 31 #include "chrome/browser/background/background_contents_service.h"
33 #include "chrome/browser/browser_process.h" 32 #include "chrome/browser/browser_process.h"
34 #include "chrome/browser/chrome_notification_types.h" 33 #include "chrome/browser/chrome_notification_types.h"
35 #include "chrome/browser/content_settings/tab_specific_content_settings.h" 34 #include "chrome/browser/content_settings/tab_specific_content_settings.h"
36 #include "chrome/browser/devtools/devtools_window_testing.h" 35 #include "chrome/browser/devtools/devtools_window_testing.h"
37 #include "chrome/browser/download/download_prefs.h" 36 #include "chrome/browser/download/download_prefs.h"
38 #include "chrome/browser/extensions/api/messaging/message_service.h" 37 #include "chrome/browser/extensions/api/messaging/message_service.h"
39 #include "chrome/browser/extensions/crx_installer.h" 38 #include "chrome/browser/extensions/crx_installer.h"
40 #include "chrome/browser/extensions/extension_management_constants.h" 39 #include "chrome/browser/extensions/extension_management_constants.h"
41 #include "chrome/browser/extensions/extension_management_test_util.h" 40 #include "chrome/browser/extensions/extension_management_test_util.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 #include "chrome/common/extensions/features/feature_channel.h" 83 #include "chrome/common/extensions/features/feature_channel.h"
85 #include "chrome/common/pref_names.h" 84 #include "chrome/common/pref_names.h"
86 #include "chrome/common/url_constants.h" 85 #include "chrome/common/url_constants.h"
87 #include "chrome/grit/generated_resources.h" 86 #include "chrome/grit/generated_resources.h"
88 #include "chrome/test/base/in_process_browser_test.h" 87 #include "chrome/test/base/in_process_browser_test.h"
89 #include "chrome/test/base/test_switches.h" 88 #include "chrome/test/base/test_switches.h"
90 #include "chrome/test/base/ui_test_utils.h" 89 #include "chrome/test/base/ui_test_utils.h"
91 #include "components/content_settings/core/common/content_settings.h" 90 #include "components/content_settings/core/common/content_settings.h"
92 #include "components/content_settings/core/common/content_settings_pattern.h" 91 #include "components/content_settings/core/common/content_settings_pattern.h"
93 #include "components/infobars/core/infobar.h" 92 #include "components/infobars/core/infobar.h"
93 #include "components/omnibox/autocomplete_controller.h"
94 #include "components/policy/core/browser/browser_policy_connector.h" 94 #include "components/policy/core/browser/browser_policy_connector.h"
95 #include "components/policy/core/common/external_data_fetcher.h" 95 #include "components/policy/core/common/external_data_fetcher.h"
96 #include "components/policy/core/common/mock_configuration_policy_provider.h" 96 #include "components/policy/core/common/mock_configuration_policy_provider.h"
97 #include "components/policy/core/common/policy_map.h" 97 #include "components/policy/core/common/policy_map.h"
98 #include "components/policy/core/common/policy_pref_names.h" 98 #include "components/policy/core/common/policy_pref_names.h"
99 #include "components/policy/core/common/policy_service.h" 99 #include "components/policy/core/common/policy_service.h"
100 #include "components/policy/core/common/policy_service_impl.h" 100 #include "components/policy/core/common/policy_service_impl.h"
101 #include "components/search_engines/template_url.h" 101 #include "components/search_engines/template_url.h"
102 #include "components/search_engines/template_url_service.h" 102 #include "components/search_engines/template_url_service.h"
103 #include "components/translate/core/browser/language_state.h" 103 #include "components/translate/core/browser/language_state.h"
(...skipping 3727 matching lines...) Expand 10 before | Expand all | Expand 10 after
3831 PrefService* prefs = browser()->profile()->GetPrefs(); 3831 PrefService* prefs = browser()->profile()->GetPrefs();
3832 EXPECT_TRUE(extensions::MessageService::IsNativeMessagingHostAllowed( 3832 EXPECT_TRUE(extensions::MessageService::IsNativeMessagingHostAllowed(
3833 prefs, "host.name")); 3833 prefs, "host.name"));
3834 EXPECT_FALSE(extensions::MessageService::IsNativeMessagingHostAllowed( 3834 EXPECT_FALSE(extensions::MessageService::IsNativeMessagingHostAllowed(
3835 prefs, "other.host.name")); 3835 prefs, "other.host.name"));
3836 } 3836 }
3837 3837
3838 #endif // !defined(CHROME_OS) 3838 #endif // !defined(CHROME_OS)
3839 3839
3840 } // namespace policy 3840 } // namespace policy
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/omnibox/omnibox_api_browsertest.cc ('k') | chrome/browser/prefs/browser_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698