本文整理匯總了Java中org.chromium.chrome.browser.precache.PrecacheController.PERIODIC_TASK_TAG屬性的典型用法代碼示例。如果您正苦於以下問題:Java PrecacheController.PERIODIC_TASK_TAG屬性的具體用法?Java PrecacheController.PERIODIC_TASK_TAG怎麽用?Java PrecacheController.PERIODIC_TASK_TAG使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在類org.chromium.chrome.browser.precache.PrecacheController
的用法示例。
在下文中一共展示了PrecacheController.PERIODIC_TASK_TAG屬性的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: launchBrowser
@VisibleForTesting
@SuppressFBWarnings("DM_EXIT")
protected void launchBrowser(Context context, String tag) {
Log.i(TAG, "Launching browser");
try {
ChromeBrowserInitializer.getInstance(this).handleSynchronousStartup();
} catch (ProcessInitException e) {
Log.e(TAG, "ProcessInitException while starting the browser process");
switch (tag) {
case PrecacheController.PERIODIC_TASK_TAG:
case PrecacheController.CONTINUATION_TASK_TAG:
// Record the failure persistently, and upload to UMA when the library
// successfully loads next time.
PrecacheUMA.record(PrecacheUMA.Event.PRECACHE_TASK_LOAD_LIBRARY_FAIL);
break;
default:
break;
}
// Since the library failed to initialize nothing in the application
// can work, so kill the whole application not just the activity.
System.exit(-1);
}
}