summaryrefslogtreecommitdiffstats
path: root/content
diff options
context:
space:
mode:
authorpetrcermak <petrcermak@chromium.org>2015-02-20 10:40:00 -0800
committerCommit bot <commit-bot@chromium.org>2015-02-20 18:40:58 +0000
commit0e657f72853e60d37eb4d1fab5be0fa674028d6b (patch)
treeadc65badc9f96ad60d25a47b7111bb3266a19111 /content
parent788518622de2a96d8ed52fd4df99b3a470ce0121 (diff)
downloadchromium_src-0e657f72853e60d37eb4d1fab5be0fa674028d6b.zip
chromium_src-0e657f72853e60d37eb4d1fab5be0fa674028d6b.tar.gz
chromium_src-0e657f72853e60d37eb4d1fab5be0fa674028d6b.tar.bz2
Fix ChromiumLinkerTest crashing due to null Context
This patch fixes an exception thrown while running ChromiumLinkerTest which was caused by null Context. The solution is to make ChromeLinkerTestApplication be a subclass of BaseChromiumApplication because it automatically calls ApplicationStatus.initialize() in onCreate(). BUG=459669 Review URL: https://codereview.chromium.org/941953003 Cr-Commit-Position: refs/heads/master@{#317358}
Diffstat (limited to 'content')
-rw-r--r--content/shell/android/linker_test_apk/src/org/chromium/chromium_linker_test_apk/ChromiumLinkerTestApplication.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/content/shell/android/linker_test_apk/src/org/chromium/chromium_linker_test_apk/ChromiumLinkerTestApplication.java b/content/shell/android/linker_test_apk/src/org/chromium/chromium_linker_test_apk/ChromiumLinkerTestApplication.java
index cf72619..9a29d4f 100644
--- a/content/shell/android/linker_test_apk/src/org/chromium/chromium_linker_test_apk/ChromiumLinkerTestApplication.java
+++ b/content/shell/android/linker_test_apk/src/org/chromium/chromium_linker_test_apk/ChromiumLinkerTestApplication.java
@@ -4,15 +4,14 @@
package org.chromium.chromium_linker_test_apk;
-import android.app.Application;
-
+import org.chromium.base.BaseChromiumApplication;
import org.chromium.base.PathUtils;
import org.chromium.base.ResourceExtractor;
/**
* Application for testing the Chromium Linker
*/
-public class ChromiumLinkerTestApplication extends Application {
+public class ChromiumLinkerTestApplication extends BaseChromiumApplication {
/**
* icudtl.dat provides ICU (i18n library) with all the data for its