summaryrefslogtreecommitdiffstats
path: root/content/shell/android
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-05 23:28:35 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-05 23:28:35 +0000
commiteabbfb19a4edd46aa81b03f9c695a6f70789b8bd (patch)
tree124b2219f4f597e0a8e5f66bb915868d3c3a84ef /content/shell/android
parent92c8a60f72634bd5ceb8cf72aa7ddf2ea689fbeb (diff)
downloadchromium_src-eabbfb19a4edd46aa81b03f9c695a6f70789b8bd.zip
chromium_src-eabbfb19a4edd46aa81b03f9c695a6f70789b8bd.tar.gz
chromium_src-eabbfb19a4edd46aa81b03f9c695a6f70789b8bd.tar.bz2
Hide ContentClient getters from embedders so that they they don't reuse content's embedder API. The main reasons are that it makes content's embedder interfaces harder to change if they're reused by the embedder, and that its makes it confusing for embedder code when there are multiple ways to do the same thing.
BUG=227047 Review URL: https://codereview.chromium.org/13409003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192649 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/shell/android')
-rw-r--r--content/shell/android/shell_manager.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/content/shell/android/shell_manager.cc b/content/shell/android/shell_manager.cc
index 39fd872..0b12e1d 100644
--- a/content/shell/android/shell_manager.cc
+++ b/content/shell/android/shell_manager.cc
@@ -50,8 +50,7 @@ static void Init(JNIEnv* env, jclass clazz, jobject obj) {
void LaunchShell(JNIEnv* env, jclass clazz, jstring jurl) {
ShellBrowserContext* browserContext =
- static_cast<ShellContentBrowserClient*>(
- GetContentClient()->browser())->browser_context();
+ ShellContentBrowserClient::Get()->browser_context();
GURL url(base::android::ConvertJavaStringToUTF8(env, jurl));
Shell::CreateNewWindow(browserContext,
url,