OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |