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

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

Issue 290573013: LanguageState should be owned by TranslateManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adding TBR for CL 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
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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 #include "chrome/test/base/test_switches.h" 81 #include "chrome/test/base/test_switches.h"
82 #include "chrome/test/base/ui_test_utils.h" 82 #include "chrome/test/base/ui_test_utils.h"
83 #include "components/infobars/core/infobar.h" 83 #include "components/infobars/core/infobar.h"
84 #include "components/policy/core/browser/browser_policy_connector.h" 84 #include "components/policy/core/browser/browser_policy_connector.h"
85 #include "components/policy/core/common/external_data_fetcher.h" 85 #include "components/policy/core/common/external_data_fetcher.h"
86 #include "components/policy/core/common/mock_configuration_policy_provider.h" 86 #include "components/policy/core/common/mock_configuration_policy_provider.h"
87 #include "components/policy/core/common/policy_map.h" 87 #include "components/policy/core/common/policy_map.h"
88 #include "components/policy/core/common/policy_pref_names.h" 88 #include "components/policy/core/common/policy_pref_names.h"
89 #include "components/policy/core/common/policy_service.h" 89 #include "components/policy/core/common/policy_service.h"
90 #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/language_state.h"
91 #include "components/translate/core/browser/translate_infobar_delegate.h" 92 #include "components/translate/core/browser/translate_infobar_delegate.h"
92 #include "content/public/browser/browser_child_process_host_iterator.h" 93 #include "content/public/browser/browser_child_process_host_iterator.h"
93 #include "content/public/browser/browser_context.h" 94 #include "content/public/browser/browser_context.h"
94 #include "content/public/browser/browser_thread.h" 95 #include "content/public/browser/browser_thread.h"
95 #include "content/public/browser/child_process_data.h" 96 #include "content/public/browser/child_process_data.h"
96 #include "content/public/browser/download_item.h" 97 #include "content/public/browser/download_item.h"
97 #include "content/public/browser/download_manager.h" 98 #include "content/public/browser/download_manager.h"
98 #include "content/public/browser/gpu_data_manager.h" 99 #include "content/public/browser/gpu_data_manager.h"
99 #include "content/public/browser/notification_details.h" 100 #include "content/public/browser/notification_details.h"
100 #include "content/public/browser/notification_observer.h" 101 #include "content/public/browser/notification_observer.h"
(...skipping 2870 matching lines...) Expand 10 before | Expand all | Expand 10 after
2971 PrefService* prefs = browser()->profile()->GetPrefs(); 2972 PrefService* prefs = browser()->profile()->GetPrefs();
2972 EXPECT_TRUE(extensions::NativeMessageProcessHost::IsHostAllowed( 2973 EXPECT_TRUE(extensions::NativeMessageProcessHost::IsHostAllowed(
2973 prefs, "host.name")); 2974 prefs, "host.name"));
2974 EXPECT_FALSE(extensions::NativeMessageProcessHost::IsHostAllowed( 2975 EXPECT_FALSE(extensions::NativeMessageProcessHost::IsHostAllowed(
2975 prefs, "other.host.name")); 2976 prefs, "other.host.name"));
2976 } 2977 }
2977 2978
2978 #endif // !defined(CHROME_OS) 2979 #endif // !defined(CHROME_OS)
2979 2980
2980 } // namespace policy 2981 } // namespace policy
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/tabs/tabs_api.cc ('k') | chrome/browser/translate/chrome_translate_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698