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

Unified Diff: chrome/android/javatests/src/org/chromium/chrome/browser/document/DocumentModeTest.java

Issue 1223263009: Disable hardware acceleration for ChromeActivities on low-end devices. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed DocumentModeTestBase to compile Created 5 years, 5 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
Index: chrome/android/javatests/src/org/chromium/chrome/browser/document/DocumentModeTest.java
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/document/DocumentModeTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/document/DocumentModeTest.java
index 6fc3a359b05f3dcd4c40a09b74e7a5f3da7be27e..d1d6dfd87d20f82e84ca3d4ba2b4f031a3b1a8ec 100644
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/document/DocumentModeTest.java
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/document/DocumentModeTest.java
@@ -56,18 +56,7 @@ public class DocumentModeTest extends DocumentModeTestBase {
launchThreeTabs();
// Try launching a ChromeTabbedActivity.
- Runnable runnable = new Runnable() {
- @Override
- public void run() {
- Intent intent = new Intent();
- intent.setAction(Intent.ACTION_VIEW);
- intent.setClassName(mContext, ChromeTabbedActivity.class.getName());
- intent.setData(Uri.parse(URL_1));
- intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_NEW_DOCUMENT);
- mContext.startActivity(intent);
- }
- };
- ActivityUtils.waitForActivity(getInstrumentation(), ChromeTabbedActivity.class, runnable);
+ startTabbedActivity(URL_1);
// ApplicationStatus should note that the ChromeTabbedActivity isn't running anymore.
assertTrue(CriteriaHelper.pollForUIThreadCriteria(new Criteria() {

Powered by Google App Engine
This is Rietveld 408576698