Add chrome.wallpaper.setWallpaper API to dev channel
Usage: chrome.wallpaper.setWallpaper(details, callback)
details = {
'wallpaperData': // the jpeg or png encoded wallpaper
'layout': // wallpaper layout
'name': // file name of saved wallpaper
'thumbnail': // true if generate thumbnail
}
callback = function (opt_thumbnail) {}
Note: This is not our final version API. It currently only support
set wallpaper through wallpaperData(binary data). Some follow up CLs
will extend this API to take URL, file path directly.
BUG=285296
Review URL: https://chromiumcodereview.appspot.com/23536024
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@222799 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 a3c0e69f..4a35ee5 100644
--- a/chrome/browser/extensions/extension_function_histogram_value.h
+++ b/chrome/browser/extensions/extension_function_histogram_value.h
@@ -631,6 +631,7 @@
ACTIVITYLOGPRIVATE_DELETEURLS,
FILEBROWSERPRIVATE_REQUESTWEBSTOREACCESSTOKEN,
RECOVERYPRIVATE_LISTREMOVABLESTORAGEDEVICES,
+ WALLPAPER_SETWALLPAPER,
ENUM_BOUNDARY // Last entry: Add new entries above.
};