diff options
author | torne <torne@chromium.org> | 2015-11-24 10:00:16 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-11-24 18:01:14 +0000 |
commit | f07dcdcecca50332469399f9f7632dfcac676e4c (patch) | |
tree | 85771e9ecf54063bb3bfd7a75e9f35eafa61d1d0 /android_webview | |
parent | 99fbcf8043ece4e72b5d15fee9be6d29b562aa06 (diff) | |
download | chromium_src-f07dcdcecca50332469399f9f7632dfcac676e4c.zip chromium_src-f07dcdcecca50332469399f9f7632dfcac676e4c.tar.gz chromium_src-f07dcdcecca50332469399f9f7632dfcac676e4c.tar.bz2 |
Remove ContentMain.initApplicationContext.
Just have callers call ContextUtils.initApplicationContext instead, the
extra indirection isn't useful.
BUG=552419
R=yfriedman@chromium.org
Review URL: https://codereview.chromium.org/1471273002
Cr-Commit-Position: refs/heads/master@{#361384}
Diffstat (limited to 'android_webview')
2 files changed, 4 insertions, 4 deletions
diff --git a/android_webview/glue/java/src/com/android/webview/chromium/WebViewChromiumFactoryProvider.java b/android_webview/glue/java/src/com/android/webview/chromium/WebViewChromiumFactoryProvider.java index 932b3c6..0ca81ae 100644 --- a/android_webview/glue/java/src/com/android/webview/chromium/WebViewChromiumFactoryProvider.java +++ b/android_webview/glue/java/src/com/android/webview/chromium/WebViewChromiumFactoryProvider.java @@ -39,6 +39,7 @@ import org.chromium.android_webview.AwResource; import org.chromium.android_webview.AwSettings; import org.chromium.android_webview.R; import org.chromium.base.CommandLine; +import org.chromium.base.ContextUtils; import org.chromium.base.MemoryPressureListener; import org.chromium.base.PathService; import org.chromium.base.PathUtils; @@ -48,7 +49,6 @@ import org.chromium.base.annotations.SuppressFBWarnings; import org.chromium.base.library_loader.LibraryLoader; import org.chromium.base.library_loader.LibraryProcessType; import org.chromium.base.library_loader.ProcessInitException; -import org.chromium.content.app.ContentMain; import org.chromium.content.browser.ContentViewStatics; import org.chromium.ui.base.ResourceBundle; @@ -423,7 +423,7 @@ public class WebViewChromiumFactoryProvider implements WebViewFactoryProvider { // will bring up just the parts it needs to make this work on a temporary // basis until Chromium is started for real. The temporary cookie manager // needs the application context to have been set. - ContentMain.initApplicationContext(getWrappedCurrentApplicationContext()); + ContextUtils.initApplicationContext(getWrappedCurrentApplicationContext()); } mCookieManager = new CookieManagerAdapter(new AwCookieManager()); } diff --git a/android_webview/javatests/src/org/chromium/android_webview/test/CookieManagerStartupTest.java b/android_webview/javatests/src/org/chromium/android_webview/test/CookieManagerStartupTest.java index 6e67ed1..6505102 100644 --- a/android_webview/javatests/src/org/chromium/android_webview/test/CookieManagerStartupTest.java +++ b/android_webview/javatests/src/org/chromium/android_webview/test/CookieManagerStartupTest.java @@ -14,8 +14,8 @@ import org.chromium.android_webview.AwCookieManager; import org.chromium.android_webview.AwWebResourceResponse; import org.chromium.android_webview.test.util.CommonResources; import org.chromium.android_webview.test.util.CookieUtils; +import org.chromium.base.ContextUtils; import org.chromium.base.test.util.Feature; -import org.chromium.content.app.ContentMain; import org.chromium.net.test.util.TestWebServer; @@ -30,7 +30,7 @@ public class CookieManagerStartupTest extends AwTestBase { @Override protected void setUp() throws Exception { super.setUp(); - ContentMain.initApplicationContext(getActivity().getApplicationContext()); + ContextUtils.initApplicationContext(getActivity().getApplicationContext()); } @Override |