[Android] Cache document-mode command-line check
commit8e78caf21c2b6765f492a96b34d3172d119b37bb
authorjdduke <jdduke@chromium.org>
Thu, 23 Jul 2015 22:21:48 +0000 (23 15:21 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 23 Jul 2015 22:23:12 +0000 (23 22:23 +0000)
tree1c0e5b11d76accb8a9f9a43c911274c49e923fb0
parent6172036d2c7275b949346e051d4cafad9f1b3e21
[Android] Cache document-mode command-line check

FeatureUtilities.isDocumentMode can be called relatively frequently.
Avoid the cost of the associated JNI command-line call and string
conversion by caching the result of the "--disable-document-mode"
query.

BUG=457748

Review URL: https://codereview.chromium.org/1255733002

Cr-Commit-Position: refs/heads/master@{#340185}
chrome/android/java/src/org/chromium/chrome/browser/util/FeatureUtilities.java