Pass the OAuth2 access token to Files.app via fileBrowserPrivate API.
This patch exposes the access token via the chrome.fileBrowserPrivate.requestAccessToken function. The function returns the cached token or retrieves the new token if the cached is not available or refreshing is requested.
TEST=Call chrome.fileBrowserPrivate.requestAccessToken(false/true, function(token) { console.log(token) }); in Files.app. Not used in production, yet.
BUG=254025
Review URL: https://chromiumcodereview.appspot.com/18316007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210887 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/browser/extensions/extension_function_histogram_value.h b/chrome/browser/extensions/extension_function_histogram_value.h
index c4f6cec5..60b18c0 100644
--- a/chrome/browser/extensions/extension_function_histogram_value.h
+++ b/chrome/browser/extensions/extension_function_histogram_value.h
@@ -558,6 +558,7 @@
FILEBROWSERPRIVATE_ZOOM,
WEBVIEW_GO,
WEBSTOREPRIVATE_ISININCOGNITOMODEFUNCTION,
+ FILEBROWSERPRIVATE_REQUESTACCESSTOKEN,
ENUM_BOUNDARY // Last entry: Add new entries above.
};