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

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

Issue 109743002: Move policy code into components/policy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: moar fixes Created 7 years 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 30 matching lines...) Expand all
41 #include "chrome/browser/extensions/updater/extension_updater.h" 41 #include "chrome/browser/extensions/updater/extension_updater.h"
42 #include "chrome/browser/infobars/infobar.h" 42 #include "chrome/browser/infobars/infobar.h"
43 #include "chrome/browser/infobars/infobar_service.h" 43 #include "chrome/browser/infobars/infobar_service.h"
44 #include "chrome/browser/media/media_capture_devices_dispatcher.h" 44 #include "chrome/browser/media/media_capture_devices_dispatcher.h"
45 #include "chrome/browser/media/media_stream_devices_controller.h" 45 #include "chrome/browser/media/media_stream_devices_controller.h"
46 #include "chrome/browser/metrics/variations/variations_service.h" 46 #include "chrome/browser/metrics/variations/variations_service.h"
47 #include "chrome/browser/net/url_request_mock_util.h" 47 #include "chrome/browser/net/url_request_mock_util.h"
48 #include "chrome/browser/plugins/plugin_prefs.h" 48 #include "chrome/browser/plugins/plugin_prefs.h"
49 #include "chrome/browser/policy/browser_policy_connector.h" 49 #include "chrome/browser/policy/browser_policy_connector.h"
50 #include "chrome/browser/policy/cloud/test_request_interceptor.h" 50 #include "chrome/browser/policy/cloud/test_request_interceptor.h"
51 #include "chrome/browser/policy/policy_service.h"
52 #include "chrome/browser/policy/policy_service_impl.h"
53 #include "chrome/browser/policy/profile_policy_connector.h" 51 #include "chrome/browser/policy/profile_policy_connector.h"
54 #include "chrome/browser/policy/profile_policy_connector_factory.h" 52 #include "chrome/browser/policy/profile_policy_connector_factory.h"
55 #include "chrome/browser/prefs/session_startup_pref.h" 53 #include "chrome/browser/prefs/session_startup_pref.h"
56 #include "chrome/browser/profiles/profile.h" 54 #include "chrome/browser/profiles/profile.h"
57 #include "chrome/browser/search/instant_service.h" 55 #include "chrome/browser/search/instant_service.h"
58 #include "chrome/browser/search/instant_service_factory.h" 56 #include "chrome/browser/search/instant_service_factory.h"
59 #include "chrome/browser/search/search.h" 57 #include "chrome/browser/search/search.h"
60 #include "chrome/browser/search_engines/template_url.h" 58 #include "chrome/browser/search_engines/template_url.h"
61 #include "chrome/browser/search_engines/template_url_service.h" 59 #include "chrome/browser/search_engines/template_url_service.h"
62 #include "chrome/browser/search_engines/template_url_service_factory.h" 60 #include "chrome/browser/search_engines/template_url_service_factory.h"
(...skipping 17 matching lines...) Expand all
80 #include "chrome/common/extensions/extension_constants.h" 78 #include "chrome/common/extensions/extension_constants.h"
81 #include "chrome/common/extensions/extension_set.h" 79 #include "chrome/common/extensions/extension_set.h"
82 #include "chrome/common/pref_names.h" 80 #include "chrome/common/pref_names.h"
83 #include "chrome/common/url_constants.h" 81 #include "chrome/common/url_constants.h"
84 #include "chrome/test/base/in_process_browser_test.h" 82 #include "chrome/test/base/in_process_browser_test.h"
85 #include "chrome/test/base/test_switches.h" 83 #include "chrome/test/base/test_switches.h"
86 #include "chrome/test/base/ui_test_utils.h" 84 #include "chrome/test/base/ui_test_utils.h"
87 #include "components/policy/core/common/external_data_fetcher.h" 85 #include "components/policy/core/common/external_data_fetcher.h"
88 #include "components/policy/core/common/mock_configuration_policy_provider.h" 86 #include "components/policy/core/common/mock_configuration_policy_provider.h"
89 #include "components/policy/core/common/policy_map.h" 87 #include "components/policy/core/common/policy_map.h"
88 #include "components/policy/core/common/policy_service.h"
89 #include "components/policy/core/common/policy_service_impl.h"
90 #include "content/public/browser/browser_child_process_host_iterator.h" 90 #include "content/public/browser/browser_child_process_host_iterator.h"
91 #include "content/public/browser/browser_context.h" 91 #include "content/public/browser/browser_context.h"
92 #include "content/public/browser/browser_thread.h" 92 #include "content/public/browser/browser_thread.h"
93 #include "content/public/browser/child_process_data.h" 93 #include "content/public/browser/child_process_data.h"
94 #include "content/public/browser/download_item.h" 94 #include "content/public/browser/download_item.h"
95 #include "content/public/browser/download_manager.h" 95 #include "content/public/browser/download_manager.h"
96 #include "content/public/browser/notification_details.h" 96 #include "content/public/browser/notification_details.h"
97 #include "content/public/browser/notification_observer.h" 97 #include "content/public/browser/notification_observer.h"
98 #include "content/public/browser/notification_registrar.h" 98 #include "content/public/browser/notification_registrar.h"
99 #include "content/public/browser/notification_service.h" 99 #include "content/public/browser/notification_service.h"
(...skipping 2765 matching lines...) Expand 10 before | Expand all | Expand 10 after
2865 chrome_variations::VariationsService::GetVariationsServerURL( 2865 chrome_variations::VariationsService::GetVariationsServerURL(
2866 g_browser_process->local_state()); 2866 g_browser_process->local_state());
2867 EXPECT_TRUE(StartsWithASCII(url.spec(), default_variations_url, true)); 2867 EXPECT_TRUE(StartsWithASCII(url.spec(), default_variations_url, true));
2868 std::string value; 2868 std::string value;
2869 EXPECT_TRUE(net::GetValueForKeyInQuery(url, "restrict", &value)); 2869 EXPECT_TRUE(net::GetValueForKeyInQuery(url, "restrict", &value));
2870 EXPECT_EQ("restricted", value); 2870 EXPECT_EQ("restricted", value);
2871 } 2871 }
2872 #endif 2872 #endif
2873 2873
2874 } // namespace policy 2874 } // namespace policy
OLDNEW
« no previous file with comments | « chrome/browser/policy/mock_policy_service.cc ('k') | chrome/browser/policy/policy_load_status.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698