Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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.chrome.browser.bookmarks; | 5 package org.chromium.chrome.browser.bookmarks; |
| 6 | 6 |
| 7 import android.os.Bundle; | 7 import android.os.Bundle; |
| 8 import android.support.v7.app.AppCompatActivity; | 8 import android.support.v7.app.AppCompatActivity; |
| 9 import android.util.Log; | 9 import android.util.Log; |
| 10 | 10 |
| 11 import org.chromium.base.library_loader.ProcessInitException; | 11 import org.chromium.base.library_loader.ProcessInitException; |
| 12 import org.chromium.chrome.browser.ChromeApplication; | 12 import org.chromium.chrome.browser.ChromeApplication; |
| 13 import org.chromium.chrome.browser.init.ChromeBrowserInitializer; | 13 import org.chromium.chrome.browser.init.ChromeBrowserInitializer; |
| 14 | 14 |
| 15 /** | 15 /** |
| 16 * Activity base class that all the EnhancedBookmark activities inherit. Current ly it's responsible | 16 * Activity base class that all the Bookmark activities inherit. Currently it's responsible |
|
Ian Wen
2016/02/16 22:15:42
s/Bookmark/bookmark ?
newt (away)
2016/02/16 23:49:50
Done.
| |
| 17 * for ensuring native library initialization. | 17 * for ensuring native library initialization. |
| 18 */ | 18 */ |
| 19 abstract class BookmarkActivityBase extends AppCompatActivity { | 19 abstract class BookmarkActivityBase extends AppCompatActivity { |
| 20 private static final String TAG = "BookmarkActivityBase"; | 20 private static final String TAG = "BookmarkActivityBase"; |
| 21 | 21 |
| 22 @Override | 22 @Override |
| 23 protected void onCreate(Bundle savedInstanceState) { | 23 protected void onCreate(Bundle savedInstanceState) { |
| 24 super.onCreate(savedInstanceState); | 24 super.onCreate(savedInstanceState); |
| 25 // Ensure that native library is loaded. | 25 // Ensure that native library is loaded. |
| 26 try { | 26 try { |
| 27 ChromeBrowserInitializer.getInstance(this).handleSynchronousStartup( ); | 27 ChromeBrowserInitializer.getInstance(this).handleSynchronousStartup( ); |
| 28 } catch (ProcessInitException e) { | 28 } catch (ProcessInitException e) { |
| 29 Log.e(TAG, "Failed to start browser process.", e); | 29 Log.e(TAG, "Failed to start browser process.", e); |
| 30 ChromeApplication.reportStartupErrorAndExit(e); | 30 ChromeApplication.reportStartupErrorAndExit(e); |
| 31 } | 31 } |
| 32 } | 32 } |
| 33 } | 33 } |
| OLD | NEW |