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

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

Issue 78763002: Move PolicyMap and its dependencies to components/policy/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: export nested struct Created 7 years, 1 month 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 | Annotate | Revision Log
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 29 matching lines...) Expand all
40 #include "chrome/browser/extensions/unpacked_installer.h" 40 #include "chrome/browser/extensions/unpacked_installer.h"
41 #include "chrome/browser/extensions/updater/extension_updater.h" 41 #include "chrome/browser/extensions/updater/extension_updater.h"
42 #include "chrome/browser/infobars/infobar_service.h" 42 #include "chrome/browser/infobars/infobar_service.h"
43 #include "chrome/browser/media/media_capture_devices_dispatcher.h" 43 #include "chrome/browser/media/media_capture_devices_dispatcher.h"
44 #include "chrome/browser/media/media_stream_devices_controller.h" 44 #include "chrome/browser/media/media_stream_devices_controller.h"
45 #include "chrome/browser/metrics/variations/variations_service.h" 45 #include "chrome/browser/metrics/variations/variations_service.h"
46 #include "chrome/browser/net/url_request_mock_util.h" 46 #include "chrome/browser/net/url_request_mock_util.h"
47 #include "chrome/browser/plugins/plugin_prefs.h" 47 #include "chrome/browser/plugins/plugin_prefs.h"
48 #include "chrome/browser/policy/browser_policy_connector.h" 48 #include "chrome/browser/policy/browser_policy_connector.h"
49 #include "chrome/browser/policy/cloud/test_request_interceptor.h" 49 #include "chrome/browser/policy/cloud/test_request_interceptor.h"
50 #include "chrome/browser/policy/external_data_fetcher.h"
51 #include "chrome/browser/policy/mock_configuration_policy_provider.h" 50 #include "chrome/browser/policy/mock_configuration_policy_provider.h"
52 #include "chrome/browser/policy/policy_map.h"
53 #include "chrome/browser/policy/policy_service.h" 51 #include "chrome/browser/policy/policy_service.h"
52 #include "chrome/browser/policy/policy_service_impl.h"
Joao da Silva 2013/11/22 17:38:48 This is not used
54 #include "chrome/browser/policy/profile_policy_connector.h" 53 #include "chrome/browser/policy/profile_policy_connector.h"
55 #include "chrome/browser/policy/profile_policy_connector_factory.h" 54 #include "chrome/browser/policy/profile_policy_connector_factory.h"
56 #include "chrome/browser/prefs/session_startup_pref.h" 55 #include "chrome/browser/prefs/session_startup_pref.h"
57 #include "chrome/browser/profiles/profile.h" 56 #include "chrome/browser/profiles/profile.h"
58 #include "chrome/browser/search/instant_service.h" 57 #include "chrome/browser/search/instant_service.h"
59 #include "chrome/browser/search/instant_service_factory.h" 58 #include "chrome/browser/search/instant_service_factory.h"
60 #include "chrome/browser/search/search.h" 59 #include "chrome/browser/search/search.h"
61 #include "chrome/browser/search_engines/template_url.h" 60 #include "chrome/browser/search_engines/template_url.h"
62 #include "chrome/browser/search_engines/template_url_service.h" 61 #include "chrome/browser/search_engines/template_url_service.h"
63 #include "chrome/browser/search_engines/template_url_service_factory.h" 62 #include "chrome/browser/search_engines/template_url_service_factory.h"
(...skipping 14 matching lines...) Expand all
78 #include "chrome/common/chrome_switches.h" 77 #include "chrome/common/chrome_switches.h"
79 #include "chrome/common/content_settings.h" 78 #include "chrome/common/content_settings.h"
80 #include "chrome/common/content_settings_pattern.h" 79 #include "chrome/common/content_settings_pattern.h"
81 #include "chrome/common/extensions/extension_constants.h" 80 #include "chrome/common/extensions/extension_constants.h"
82 #include "chrome/common/extensions/extension_set.h" 81 #include "chrome/common/extensions/extension_set.h"
83 #include "chrome/common/pref_names.h" 82 #include "chrome/common/pref_names.h"
84 #include "chrome/common/url_constants.h" 83 #include "chrome/common/url_constants.h"
85 #include "chrome/test/base/in_process_browser_test.h" 84 #include "chrome/test/base/in_process_browser_test.h"
86 #include "chrome/test/base/test_switches.h" 85 #include "chrome/test/base/test_switches.h"
87 #include "chrome/test/base/ui_test_utils.h" 86 #include "chrome/test/base/ui_test_utils.h"
87 #include "components/policy/core/common/external_data_fetcher.h"
88 #include "components/policy/core/common/policy_map.h"
88 #include "content/public/browser/browser_child_process_host_iterator.h" 89 #include "content/public/browser/browser_child_process_host_iterator.h"
89 #include "content/public/browser/browser_context.h" 90 #include "content/public/browser/browser_context.h"
90 #include "content/public/browser/browser_thread.h" 91 #include "content/public/browser/browser_thread.h"
91 #include "content/public/browser/child_process_data.h" 92 #include "content/public/browser/child_process_data.h"
92 #include "content/public/browser/download_item.h" 93 #include "content/public/browser/download_item.h"
93 #include "content/public/browser/download_manager.h" 94 #include "content/public/browser/download_manager.h"
94 #include "content/public/browser/notification_details.h" 95 #include "content/public/browser/notification_details.h"
95 #include "content/public/browser/notification_observer.h" 96 #include "content/public/browser/notification_observer.h"
96 #include "content/public/browser/notification_registrar.h" 97 #include "content/public/browser/notification_registrar.h"
97 #include "content/public/browser/notification_service.h" 98 #include "content/public/browser/notification_service.h"
(...skipping 2762 matching lines...) Expand 10 before | Expand all | Expand 10 after
2860 chrome_variations::VariationsService::GetVariationsServerURL( 2861 chrome_variations::VariationsService::GetVariationsServerURL(
2861 g_browser_process->local_state()); 2862 g_browser_process->local_state());
2862 EXPECT_TRUE(StartsWithASCII(url.spec(), default_variations_url, true)); 2863 EXPECT_TRUE(StartsWithASCII(url.spec(), default_variations_url, true));
2863 std::string value; 2864 std::string value;
2864 EXPECT_TRUE(net::GetValueForKeyInQuery(url, "restrict", &value)); 2865 EXPECT_TRUE(net::GetValueForKeyInQuery(url, "restrict", &value));
2865 EXPECT_EQ("restricted", value); 2866 EXPECT_EQ("restricted", value);
2866 } 2867 }
2867 #endif 2868 #endif
2868 2869
2869 } // namespace policy 2870 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698