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

Unified Diff: content/shell/android/linker_test_apk/src/org/chromium/chromium_linker_test_apk/ChromiumLinkerTestActivity.java

Issue 1224963002: Refactor chromium's Linker class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update for review feedback. 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: content/shell/android/linker_test_apk/src/org/chromium/chromium_linker_test_apk/ChromiumLinkerTestActivity.java
diff --git a/content/shell/android/linker_test_apk/src/org/chromium/chromium_linker_test_apk/ChromiumLinkerTestActivity.java b/content/shell/android/linker_test_apk/src/org/chromium/chromium_linker_test_apk/ChromiumLinkerTestActivity.java
index 61ba04dcc306f0a23bdae48c82d03510dad95493..36c3996dce74077de6af75f25bef5b5ecc5ae88c 100644
--- a/content/shell/android/linker_test_apk/src/org/chromium/chromium_linker_test_apk/ChromiumLinkerTestActivity.java
+++ b/content/shell/android/linker_test_apk/src/org/chromium/chromium_linker_test_apk/ChromiumLinkerTestActivity.java
@@ -77,10 +77,11 @@ public class ChromiumLinkerTestActivity extends Activity {
if (hasLowMemoryDeviceSwitch) {
memoryDeviceConfig = Linker.MEMORY_DEVICE_CONFIG_LOW;
}
- Linker.setMemoryDeviceConfig(memoryDeviceConfig);
+ Linker linker = Linker.getInstance();
+ linker.setMemoryDeviceConfig(memoryDeviceConfig);
// Register the test runner class by name.
- Linker.setTestRunnerClassName(LinkerTests.class.getName());
+ linker.setTestRunnerClassName(LinkerTests.class.getName());
// Load the library in the browser process, this will also run the test
// runner in this process.

Powered by Google App Engine
This is Rietveld 408576698