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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/ChromeLifetimeController.java

Issue 1391893003: NOT FOR REVIEW: Aura on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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/java/src/org/chromium/chrome/browser/ChromeLifetimeController.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/ChromeLifetimeController.java b/chrome/android/java/src/org/chromium/chrome/browser/ChromeLifetimeController.java
index b433b50d6bbbb886fcbb97b1ad9e6af9b4ee8633..b1bc6ebc6b2efb1d8432bbfffd47b0aca47a7d0c 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/ChromeLifetimeController.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/ChromeLifetimeController.java
@@ -93,19 +93,19 @@ class ChromeLifetimeController implements ApplicationLifetime.Observer,
mHandler.post(new Runnable() {
@Override
public void run() {
- if (mRestartChromeOnDestroy) {
- Log.w(TAG, "Launching BrowserRestartActivity to restart Chrome.");
- Context context = ApplicationStatus.getApplicationContext();
- Intent intent = new Intent();
- intent.setClassName(
- context.getPackageName(), BrowserRestartActivity.class.getName());
- intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
- intent.putExtra(BrowserRestartActivity.EXTRA_PID, Process.myPid());
- context.startActivity(intent);
- } else {
+// if (mRestartChromeOnDestroy) {
+// Log.w(TAG, "Launching BrowserRestartActivity to restart Chrome.");
+// Context context = ApplicationStatus.getApplicationContext();
+// Intent intent = new Intent();
+// intent.setClassName(
+// context.getPackageName(), BrowserRestartActivity.class.getName());
+// intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
+// intent.putExtra(BrowserRestartActivity.EXTRA_PID, Process.myPid());
+// context.startActivity(intent);
+// } else {
Log.w(TAG, "Killing process directly.");
Process.killProcess(Process.myPid());
- }
+// }
mRestartChromeOnDestroy = false;
}
});

Powered by Google App Engine
This is Rietveld 408576698