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

Unified Diff: chrome/browser/browser_process_platform_part_base.cc

Issue 138163015: More fixes to enable ios build with policy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: removed obsolete files from gyp Created 6 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/ios/grit_whitelist.txt ('k') | chrome/browser/policy/configuration_policy_handler_list_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser_process_platform_part_base.cc
diff --git a/chrome/browser/browser_process_platform_part_base.cc b/chrome/browser/browser_process_platform_part_base.cc
index 65ff9c153d86694e33833a300507d2cd072d6845..da263bfc2a8b3bbd4ea67e3482e48eacc7f91c08 100644
--- a/chrome/browser/browser_process_platform_part_base.cc
+++ b/chrome/browser/browser_process_platform_part_base.cc
@@ -7,8 +7,11 @@
#include "chrome/browser/lifetime/application_lifetime.h"
#if defined(ENABLE_CONFIGURATION_POLICY)
+#include "components/policy/core/browser/browser_policy_connector.h"
+#if !defined(OS_IOS)
#include "chrome/browser/policy/chrome_browser_policy_connector.h"
#endif
+#endif
BrowserProcessPlatformPartBase::BrowserProcessPlatformPartBase() {
}
@@ -40,7 +43,12 @@ void BrowserProcessPlatformPartBase::PreMainMessageLoopRun() {
#if defined(ENABLE_CONFIGURATION_POLICY)
scoped_ptr<policy::BrowserPolicyConnector>
BrowserProcessPlatformPartBase::CreateBrowserPolicyConnector() {
+#if defined(OS_IOS)
+ NOTREACHED();
+ return scoped_ptr<policy::BrowserPolicyConnector>();
+#else
return scoped_ptr<policy::BrowserPolicyConnector>(
new policy::ChromeBrowserPolicyConnector());
+#endif
}
#endif
« no previous file with comments | « build/ios/grit_whitelist.txt ('k') | chrome/browser/policy/configuration_policy_handler_list_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698