|
Revert 171011 - Broke Linux ChromiumOS Tests (dbg)(2)
Make wallpaper picker manifest and thumbnails available when offline.
This CL did the following:
1. Save/update manifest in chrome.storage.local when user successfully
requested latest manifest from server. If user failed to get manifest
from server(offline or server error), fallback to the manifest saved
in chrome.storage.local last time.
2. Lazily saves all requested thumbnails to thumbnails directory. And
load from that directory when user open wallpaper picker next time. Note
that thumbnails are shared across user session. So after one user saved
thumbnails, all other users will directly use the thumbnails that saved
in thumbnail directory.
BUG= 158668
Review URL: https://chromiumcodereview.appspot.com/11348215
TBR=bshe@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=171043
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+91 lines, -402 lines) |
Patch |
 |
M |
chrome/browser/chromeos/extensions/wallpaper_private_api.h
|
View
|
|
1 chunk |
+0 lines, -61 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/extensions/wallpaper_private_api.cc
|
View
|
|
7 chunks |
+34 lines, -174 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/extension_function_registry.cc
|
View
|
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/resources/chromeos/wallpaper_manager/js/wallpaper_images_grid.js
|
View
|
|
1 chunk |
+8 lines, -25 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/resources/chromeos/wallpaper_manager/js/wallpaper_manager.js
|
View
|
|
4 chunks |
+11 lines, -28 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/resources/chromeos/wallpaper_manager/manifest.json
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/common/chrome_paths.h
|
View
|
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/common/chrome_paths.cc
|
View
|
|
1 chunk |
+0 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/common/extensions/api/wallpaper_private.json
|
View
|
|
1 chunk |
+0 lines, -51 lines |
0 comments
|
Download
|
 |
MM |
chrome/test/data/extensions/api_test/wallpaper_manager/test.js
|
View
|
|
3 chunks |
+38 lines, -53 lines |
0 comments
|
Download
|
Total messages: 3 (0 generated)
|