Ben Murdoch | 097c5b2 | 2016-05-18 11:27:45 +0100 | [diff] [blame^] | 1 | // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | package org.chromium.incrementalinstall; |
| 6 | |
| 7 | import android.app.Instrumentation; |
| 8 | import android.os.Bundle; |
| 9 | |
| 10 | /** |
| 11 | * Notifies BootstrapApplication of the call to Instrumentation.onCreate(). |
| 12 | */ |
| 13 | public final class BootstrapInstrumentation extends Instrumentation { |
| 14 | private final BootstrapApplication mApp; |
| 15 | |
| 16 | BootstrapInstrumentation(BootstrapApplication app) { |
| 17 | mApp = app; |
| 18 | } |
| 19 | |
| 20 | @Override |
| 21 | public void onCreate(Bundle arguments) { |
| 22 | super.onCreate(arguments); |
| 23 | mApp.onInstrumentationCreate(arguments); |
| 24 | } |
| 25 | } |