Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2345)

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/tabmodel/document/DocumentTabModelImpl.java

Issue 1464313010: Fix strict mode violation on document mode initialization. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/init/ChromeBrowserInitializer.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/src/org/chromium/chrome/browser/tabmodel/document/DocumentTabModelImpl.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/tabmodel/document/DocumentTabModelImpl.java b/chrome/android/java/src/org/chromium/chrome/browser/tabmodel/document/DocumentTabModelImpl.java
index e44979e2b068e2221300f2af508cc7b53a7277e9..96fc1659709061069540f402bdc1f92aece5945b 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/tabmodel/document/DocumentTabModelImpl.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/tabmodel/document/DocumentTabModelImpl.java
@@ -136,6 +136,14 @@ public class DocumentTabModelImpl extends TabModelJniBridge implements DocumentT
private int mLastShownTabId = Tab.INVALID_TAB_ID;
/**
+ * Pre-load shared prefs to avoid being blocked on the
+ * disk access async task in the future.
+ */
+ public static void warmUpSharedPrefs(Context context) {
hartmanng 2015/11/26 21:51:13 As an alternative to the public static method here
+ context.getSharedPreferences(PREF_PACKAGE, Context.MODE_PRIVATE);
+ }
+
+ /**
* Construct a DocumentTabModel.
* @param activityDelegate Delegate to use for accessing the ActivityManager.
* @param storageDelegate Delegate to use for accessing persistent storage.
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/init/ChromeBrowserInitializer.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698