diff options
author | aberent <aberent@chromium.org> | 2015-07-24 05:53:54 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-07-24 12:54:29 +0000 |
commit | 1adc137bc1bc1d8cadf5f691dc3a4da2848eb7ed (patch) | |
tree | 06c4916ead1628c015ed38ada751c98163ce47fe /components/test | |
parent | cc15bf26827fcef7e7f583e11fcb4dd749c6732e (diff) | |
download | chromium_src-1adc137bc1bc1d8cadf5f691dc3a4da2848eb7ed.zip chromium_src-1adc137bc1bc1d8cadf5f691dc3a4da2848eb7ed.tar.gz chromium_src-1adc137bc1bc1d8cadf5f691dc3a4da2848eb7ed.tar.bz2 |
Read Android policies early in startup
The IO thread constructor reads preferences that are set from policies, so Chrome
should read the policies before the IO thread constructor is called.
Two parts to this:
1 - create a persistant policy cache and read it cache synchronously
2 - reorder various things so that the Android PolicyManager and PolicyProviders
are created earlier in startup.
Also merge (C++) PolicyProviderAndroid into PolicyManager and add Junit tests
for the Java PolicyManager.
TBR=nyquist
BUG=510813
Review URL: https://codereview.chromium.org/1239323002
Cr-Commit-Position: refs/heads/master@{#340265}
Diffstat (limited to 'components/test')
-rw-r--r-- | components/test/DEPS | 1 | ||||
-rw-r--r-- | components/test/run_all_unittests.cc | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/components/test/DEPS b/components/test/DEPS index 265c5f7..d36f58a 100644 --- a/components/test/DEPS +++ b/components/test/DEPS @@ -2,6 +2,7 @@ include_rules = [ # To initialize the global data of content_settings. "+components/content_settings/core/common", "+components/invalidation/impl/android/component_jni_registrar.h", + "+components/policy/core/browser/android/component_jni_registrar.h", "+components/safe_json/android/component_jni_registrar.h", "+content/public/android/java/src/org/chromium/content/browser", "+content/public/app/content_jni_onload.h", diff --git a/components/test/run_all_unittests.cc b/components/test/run_all_unittests.cc index fd327a1..4c29924 100644 --- a/components/test/run_all_unittests.cc +++ b/components/test/run_all_unittests.cc @@ -23,6 +23,7 @@ #if defined(OS_ANDROID) #include "base/android/jni_android.h" #include "components/invalidation/impl/android/component_jni_registrar.h" +#include "components/policy/core/browser/android/component_jni_registrar.h" #include "components/safe_json/android/component_jni_registrar.h" #include "ui/base/android/ui_base_jni_registrar.h" #include "ui/gfx/android/gfx_jni_registrar.h" @@ -52,6 +53,7 @@ class ComponentsTestSuite : public base::TestSuite { ASSERT_TRUE(gfx::android::RegisterJni(env)); ASSERT_TRUE(ui::android::RegisterJni(env)); ASSERT_TRUE(invalidation::android::RegisterInvalidationJni(env)); + ASSERT_TRUE(policy::android::RegisterPolicy(env)); ASSERT_TRUE(safe_json::android::RegisterSafeJsonJni(env)); #endif |