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_apk; | 5 package org.chromium.mojo_shell_apk; |
6 | 6 |
7 import android.app.Activity; | 7 import android.app.Activity; |
8 import android.app.AlertDialog; | 8 import android.app.AlertDialog; |
9 import android.content.DialogInterface; | 9 import android.content.DialogInterface; |
10 import android.content.Intent; | 10 import android.content.Intent; |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 // activity. If the application process is kept alive, initialization pa
rameters sent with | 57 // activity. If the application process is kept alive, initialization pa
rameters sent with |
58 // the intent will be stale. | 58 // the intent will be stale. |
59 // TODO(qsr): We should be passing application context here as required
by | 59 // TODO(qsr): We should be passing application context here as required
by |
60 // InitApplicationContext on the native side. Currently we can't, as Pla
tformViewportAndroid | 60 // InitApplicationContext on the native side. Currently we can't, as Pla
tformViewportAndroid |
61 // relies on this being the activity context. | 61 // relies on this being the activity context. |
62 MojoMain.ensureInitialized(this, getParametersFromIntent(getIntent())); | 62 MojoMain.ensureInitialized(this, getParametersFromIntent(getIntent())); |
63 MojoMain.start(url); | 63 MojoMain.start(url); |
64 Log.i(TAG, "Mojo started: " + url); | 64 Log.i(TAG, "Mojo started: " + url); |
65 } | 65 } |
66 } | 66 } |
OLD | NEW |