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

Unified Diff: chrome/browser/resources/chromeos/wallpaper_manager/js/wallpaper_manager.js

Issue 956403003: Fix the issue that wallpaper changes twice when both "onChanged" and "onAlarm" are fired. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address the code review comments. Created 5 years, 10 months 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
Index: chrome/browser/resources/chromeos/wallpaper_manager/js/wallpaper_manager.js
diff --git a/chrome/browser/resources/chromeos/wallpaper_manager/js/wallpaper_manager.js b/chrome/browser/resources/chromeos/wallpaper_manager/js/wallpaper_manager.js
index fbdb27f6aca89fa8c2a6568ed8b3c54c0e1b688c..f9e313e65a49d08aa5ae66d8c098d54558567c5c 100644
--- a/chrome/browser/resources/chromeos/wallpaper_manager/js/wallpaper_manager.js
+++ b/chrome/browser/resources/chromeos/wallpaper_manager/js/wallpaper_manager.js
@@ -596,8 +596,9 @@ function WallpaperManager(dialogDom) {
self.showError_(str('downloadFailed'));
self.wallpaperRequest_ = null;
};
- WallpaperUtil.fetchURL(wallpaperURL, 'arraybuffer', onSuccess,
- onFailure, self.wallpaperRequest_);
+ WallpaperUtil.fetchURL(wallpaperURL, 'arraybuffer',
+ onSuccess, onFailure, function() {},
+ self.wallpaperRequest_);
});
break;
default:

Powered by Google App Engine
This is Rietveld 408576698