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

Side by Side Diff: mojo/runner/android/apk/src/org/chromium/mojo/shell/MojoShellActivity.java

Issue 1407233017: Define a Java-side global application context. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Undo changes to ApplicationStatus Created 5 years 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.mojo.shell; 5 package org.chromium.mojo.shell;
6 6
7 import android.app.Activity; 7 import android.app.Activity;
8 import android.content.Intent; 8 import android.content.Intent;
9 import android.net.Uri; 9 import android.net.Uri;
10 import android.os.Bundle; 10 import android.os.Bundle;
(...skipping 29 matching lines...) Expand all
40 newParameters[parameters.length] = uri.toString(); 40 newParameters[parameters.length] = uri.toString();
41 parameters = newParameters; 41 parameters = newParameters;
42 } 42 }
43 } 43 }
44 } 44 }
45 45
46 // TODO(ppi): Gotcha - the call below will work only once per process li fetime, but the OS 46 // TODO(ppi): Gotcha - the call below will work only once per process li fetime, but the OS
47 // has no obligation to kill the application process between destroying and restarting the 47 // has no obligation to kill the application process between destroying and restarting the
48 // activity. If the application process is kept alive, initialization pa rameters sent with 48 // activity. If the application process is kept alive, initialization pa rameters sent with
49 // the intent will be stale. 49 // the intent will be stale.
50 // TODO(qsr): We should be passing application context here as required by
51 // InitApplicationContext on the native side. Currently we can't, as Pla tformViewportAndroid
52 // relies on this being the activity context.
53 ShellMain.ensureInitialized(this, parameters); 50 ShellMain.ensureInitialized(this, parameters);
54 ShellMain.start(); 51 ShellMain.start();
55 } 52 }
56 } 53 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698