Commit 07922ae4 authored by Noel Gordon's avatar Noel Gordon Committed by Commit Bot

[filesapp] Use token '42' for the web store in files app SWA

Bug: 1149264, 1113981
Change-Id: I5253f9eba5bd0869d32dd1757c35eb583628ad28
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2537315Reviewed-by: default avatarLuciano Pacheco <lucmult@chromium.org>
Commit-Queue: Noel Gordon <noel@chromium.org>
Cr-Commit-Position: refs/heads/master@{#827719}
parent 81ced841
......@@ -196,6 +196,11 @@ class SuggestAppsDialog extends FileManagerDialogBase {
* token (null on error).
*/
requestWebstoreAccessToken: function(callback) {
if (window.isSWA) {
callback('42');
return;
}
chrome.fileManagerPrivate.requestWebStoreAccessToken(token => {
if (chrome.runtime.lastError) {
console.error(chrome.runtime.lastError.message);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment