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

Unified Diff: content/shell/android/browsertests_apk/src/org/chromium/content_browsertests_apk/ContentBrowserTestsActivity.java

Issue 12188016: Allow BrowserTestBase to do wait. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 | « content/shell/android/browsertests_apk/res/layout/test_activity.xml ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/android/browsertests_apk/src/org/chromium/content_browsertests_apk/ContentBrowserTestsActivity.java
diff --git a/content/shell/android/browsertests_apk/src/org/chromium/content_browsertests_apk/ContentBrowserTestsActivity.java b/content/shell/android/browsertests_apk/src/org/chromium/content_browsertests_apk/ContentBrowserTestsActivity.java
index 3d07e84aa429dd4e198b4ede068e7d9ca1954fc2..86992a57f303756c09dd7668b0dcacc96c5756fc 100644
--- a/content/shell/android/browsertests_apk/src/org/chromium/content_browsertests_apk/ContentBrowserTestsActivity.java
+++ b/content/shell/android/browsertests_apk/src/org/chromium/content_browsertests_apk/ContentBrowserTestsActivity.java
@@ -7,6 +7,8 @@ package org.chromium.content_browsertests_apk;
import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
+import android.view.LayoutInflater;
+import android.view.View;
import android.util.Log;
import org.chromium.content.app.LibraryLoader;
@@ -32,8 +34,10 @@ public class ContentBrowserTestsActivity extends Activity {
}
AndroidBrowserProcess.initChromiumBrowserProcessForTests();
- setContentView(R.layout.test_activity);
- mShellManager = (ShellManager) findViewById(R.id.shell_container);
+ LayoutInflater inflater =
+ (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);
+ View view = inflater.inflate(R.layout.test_activity, null);
+ mShellManager = (ShellManager) view.findViewById(R.id.shell_container);
mActivityNativeWindow = new ActivityNativeWindow(this);
mShellManager.setWindow(mActivityNativeWindow);
« no previous file with comments | « content/shell/android/browsertests_apk/res/layout/test_activity.xml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698