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

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

Issue 284313008: Move TranslateInfoBarDelegate and OptionsMenuModel to the Translate component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + review comments Created 6 years, 6 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 | 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 #include "chrome/browser/policy/profile_policy_connector_factory.h" 50 #include "chrome/browser/policy/profile_policy_connector_factory.h"
51 #include "chrome/browser/prefs/session_startup_pref.h" 51 #include "chrome/browser/prefs/session_startup_pref.h"
52 #include "chrome/browser/profiles/profile.h" 52 #include "chrome/browser/profiles/profile.h"
53 #include "chrome/browser/search/instant_service.h" 53 #include "chrome/browser/search/instant_service.h"
54 #include "chrome/browser/search/instant_service_factory.h" 54 #include "chrome/browser/search/instant_service_factory.h"
55 #include "chrome/browser/search/search.h" 55 #include "chrome/browser/search/search.h"
56 #include "chrome/browser/search_engines/template_url.h" 56 #include "chrome/browser/search_engines/template_url.h"
57 #include "chrome/browser/search_engines/template_url_service.h" 57 #include "chrome/browser/search_engines/template_url_service.h"
58 #include "chrome/browser/search_engines/template_url_service_factory.h" 58 #include "chrome/browser/search_engines/template_url_service_factory.h"
59 #include "chrome/browser/translate/translate_browser_test_utils.h" 59 #include "chrome/browser/translate/translate_browser_test_utils.h"
60 #include "chrome/browser/translate/translate_infobar_delegate.h"
61 #include "chrome/browser/translate/translate_service.h" 60 #include "chrome/browser/translate/translate_service.h"
62 #include "chrome/browser/translate/translate_tab_helper.h" 61 #include "chrome/browser/translate/translate_tab_helper.h"
63 #include "chrome/browser/ui/bookmarks/bookmark_bar.h" 62 #include "chrome/browser/ui/bookmarks/bookmark_bar.h"
64 #include "chrome/browser/ui/browser.h" 63 #include "chrome/browser/ui/browser.h"
65 #include "chrome/browser/ui/browser_commands.h" 64 #include "chrome/browser/ui/browser_commands.h"
66 #include "chrome/browser/ui/browser_list.h" 65 #include "chrome/browser/ui/browser_list.h"
67 #include "chrome/browser/ui/browser_tabstrip.h" 66 #include "chrome/browser/ui/browser_tabstrip.h"
68 #include "chrome/browser/ui/browser_window.h" 67 #include "chrome/browser/ui/browser_window.h"
69 #include "chrome/browser/ui/host_desktop.h" 68 #include "chrome/browser/ui/host_desktop.h"
70 #include "chrome/browser/ui/omnibox/location_bar.h" 69 #include "chrome/browser/ui/omnibox/location_bar.h"
(...skipping 11 matching lines...) Expand all
82 #include "chrome/test/base/test_switches.h" 81 #include "chrome/test/base/test_switches.h"
83 #include "chrome/test/base/ui_test_utils.h" 82 #include "chrome/test/base/ui_test_utils.h"
84 #include "components/infobars/core/infobar.h" 83 #include "components/infobars/core/infobar.h"
85 #include "components/policy/core/browser/browser_policy_connector.h" 84 #include "components/policy/core/browser/browser_policy_connector.h"
86 #include "components/policy/core/common/external_data_fetcher.h" 85 #include "components/policy/core/common/external_data_fetcher.h"
87 #include "components/policy/core/common/mock_configuration_policy_provider.h" 86 #include "components/policy/core/common/mock_configuration_policy_provider.h"
88 #include "components/policy/core/common/policy_map.h" 87 #include "components/policy/core/common/policy_map.h"
89 #include "components/policy/core/common/policy_pref_names.h" 88 #include "components/policy/core/common/policy_pref_names.h"
90 #include "components/policy/core/common/policy_service.h" 89 #include "components/policy/core/common/policy_service.h"
91 #include "components/policy/core/common/policy_service_impl.h" 90 #include "components/policy/core/common/policy_service_impl.h"
91 #include "components/translate/core/browser/translate_infobar_delegate.h"
92 #include "content/public/browser/browser_child_process_host_iterator.h" 92 #include "content/public/browser/browser_child_process_host_iterator.h"
93 #include "content/public/browser/browser_context.h" 93 #include "content/public/browser/browser_context.h"
94 #include "content/public/browser/browser_thread.h" 94 #include "content/public/browser/browser_thread.h"
95 #include "content/public/browser/child_process_data.h" 95 #include "content/public/browser/child_process_data.h"
96 #include "content/public/browser/download_item.h" 96 #include "content/public/browser/download_item.h"
97 #include "content/public/browser/download_manager.h" 97 #include "content/public/browser/download_manager.h"
98 #include "content/public/browser/gpu_data_manager.h" 98 #include "content/public/browser/gpu_data_manager.h"
99 #include "content/public/browser/notification_details.h" 99 #include "content/public/browser/notification_details.h"
100 #include "content/public/browser/notification_observer.h" 100 #include "content/public/browser/notification_observer.h"
101 #include "content/public/browser/notification_registrar.h" 101 #include "content/public/browser/notification_registrar.h"
(...skipping 2869 matching lines...) Expand 10 before | Expand all | Expand 10 after
2971 PrefService* prefs = browser()->profile()->GetPrefs(); 2971 PrefService* prefs = browser()->profile()->GetPrefs();
2972 EXPECT_TRUE(extensions::NativeMessageProcessHost::IsHostAllowed( 2972 EXPECT_TRUE(extensions::NativeMessageProcessHost::IsHostAllowed(
2973 prefs, "host.name")); 2973 prefs, "host.name"));
2974 EXPECT_FALSE(extensions::NativeMessageProcessHost::IsHostAllowed( 2974 EXPECT_FALSE(extensions::NativeMessageProcessHost::IsHostAllowed(
2975 prefs, "other.host.name")); 2975 prefs, "other.host.name"));
2976 } 2976 }
2977 2977
2978 #endif // !defined(CHROME_OS) 2978 #endif // !defined(CHROME_OS)
2979 2979
2980 } // namespace policy 2980 } // namespace policy
OLDNEW
« no previous file with comments | « chrome/browser/autofill/autofill_interactive_uitest.cc ('k') | chrome/browser/translate/options_menu_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698