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

Issue 10754014: Wallpaper manager backend APIs (Closed)

Created:
8 years, 5 months ago by bshe
Modified:
8 years, 4 months ago
CC:
chromium-reviews, Aaron Boodman
Visibility:
Public.

Description

Wallpaper manager backend APIs BUG=118684 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=148400

Patch Set 1 #

Patch Set 2 : #

Total comments: 1

Patch Set 3 : Remove AddRef/Release hack, add layout information to API. #

Patch Set 4 : nits #

Total comments: 20

Patch Set 5 : Rob's review #

Patch Set 6 : Merge to trunk #

Patch Set 7 : Private api instead of experimental #

Patch Set 8 : Release WallpaperManagerSetWallpaperFunction instance after downloading finished or canceled. #

Patch Set 9 : Fix a crash when try to cancel previous request which had finished. Add more error message. #

Total comments: 18

Patch Set 10 : Mihai's review #

Patch Set 11 : Flack's review #

Patch Set 12 : Add function "SaveToFile" #

Total comments: 10

Patch Set 13 : Mihai's review #

Patch Set 14 : Fix thread violation #

Total comments: 4

Patch Set 15 : Fix compile error on linux_chromeos_clang and format nits #

Total comments: 2

Patch Set 16 : sky's reivew #

Patch Set 17 : Fix linux_chromeos compile error #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+446 lines, -101 lines) Patch
M ash/desktop_background/desktop_background_resources.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +3 lines, -0 lines 0 comments Download
M ash/desktop_background/desktop_background_resources.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +18 lines, -0 lines 0 comments Download
M chrome/app/generated_resources.grd View 1 chunk +23 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/background/ash_user_wallpaper_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/extensions/wallpaper_manager_api.h View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -27 lines 0 comments Download
M chrome/browser/chromeos/extensions/wallpaper_manager_api.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -57 lines 0 comments Download
A chrome/browser/chromeos/extensions/wallpaper_manager_util.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +17 lines, -0 lines 0 comments Download
A + chrome/browser/chromeos/extensions/wallpaper_manager_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +4 lines, -12 lines 0 comments Download
A chrome/browser/chromeos/extensions/wallpaper_private_api.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +68 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/extensions/wallpaper_private_api.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +183 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/wallpaper_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +16 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/wallpaper_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +17 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_function_registry.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/resources/chromeos/wallpaper_manager/manifest.json View 1 2 3 4 5 6 7 8 9 1 chunk +10 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/options2/browser_options_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -1 line 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/common/chrome_paths.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/chrome_paths.cc View 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/_permission_features.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +5 lines, -0 lines 1 comment Download
M chrome/common/extensions/api/extension_api.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +2 lines, -0 lines 0 comments Download
A chrome/common/extensions/api/wallpaper_private.json View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +52 lines, -0 lines 0 comments Download
M chrome/common/extensions/docs/js/api_page_generator.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/permissions/api_permission.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/permissions/api_permission.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/permissions/permission_set_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions_api_resources.grd View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
bshe
Hi Satoru. Here is my CL. I use this->AddRef as a quick walkaround. It's definitely ...
8 years, 5 months ago (2012-07-10 02:03:58 UTC) #1
bshe
Hi Rob. Could you please take a look at this CL? It implements two wallpaper ...
8 years, 5 months ago (2012-07-11 19:48:48 UTC) #2
flackr
https://chromiumcodereview.appspot.com/10754014/diff/14003/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://chromiumcodereview.appspot.com/10754014/diff/14003/chrome/app/generated_resources.grd#newcode13722 chrome/app/generated_resources.grd:13722: + </message> This seems like a duplicate. https://chromiumcodereview.appspot.com/10754014/diff/14003/chrome/browser/chromeos/extensions/wallpaper_manager_api.cc File ...
8 years, 5 months ago (2012-07-12 19:26:12 UTC) #3
bshe
done. Thanks. http://codereview.chromium.org/10754014/diff/14003/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): http://codereview.chromium.org/10754014/diff/14003/chrome/app/generated_resources.grd#newcode13722 chrome/app/generated_resources.grd:13722: + </message> On 2012/07/12 19:26:12, flackr wrote: ...
8 years, 5 months ago (2012-07-13 19:28:57 UTC) #4
bshe
+mihaip I have moved the api to wallpaperManagerPrivate as you suggested in https://chromiumcodereview.appspot.com/10453032/ I will ...
8 years, 5 months ago (2012-07-16 01:18:17 UTC) #5
Mihai Parparita -not on Chrome
https://chromiumcodereview.appspot.com/10754014/diff/25004/chrome/browser/chromeos/extensions/wallpaper_manager_api.h File chrome/browser/chromeos/extensions/wallpaper_manager_api.h (right): https://chromiumcodereview.appspot.com/10754014/diff/25004/chrome/browser/chromeos/extensions/wallpaper_manager_api.h#newcode40 chrome/browser/chromeos/extensions/wallpaper_manager_api.h:40: const int64 kBytesWallpaperDownloadProgressReportInterval = 10240; Seems like this can ...
8 years, 5 months ago (2012-07-16 23:14:25 UTC) #6
flackr
Just a few nits. http://codereview.chromium.org/10754014/diff/25004/ash/desktop_background/desktop_background_resources.h File ash/desktop_background/desktop_background_resources.h (right): http://codereview.chromium.org/10754014/diff/25004/ash/desktop_background/desktop_background_resources.h#newcode34 ash/desktop_background/desktop_background_resources.h:34: ASH_EXPORT WallpaperLayout GetLayoutEnum(const char* layout); ...
8 years, 5 months ago (2012-07-18 13:46:10 UTC) #7
bshe
@hihai Could you please take another look? Thanks. https://chromiumcodereview.appspot.com/10754014/diff/25004/chrome/browser/chromeos/extensions/wallpaper_manager_api.h File chrome/browser/chromeos/extensions/wallpaper_manager_api.h (right): https://chromiumcodereview.appspot.com/10754014/diff/25004/chrome/browser/chromeos/extensions/wallpaper_manager_api.h#newcode40 chrome/browser/chromeos/extensions/wallpaper_manager_api.h:40: const ...
8 years, 5 months ago (2012-07-18 18:28:56 UTC) #8
bshe
@flackr Done. Could you please take another look? Thanks http://codereview.chromium.org/10754014/diff/25004/ash/desktop_background/desktop_background_resources.h File ash/desktop_background/desktop_background_resources.h (right): http://codereview.chromium.org/10754014/diff/25004/ash/desktop_background/desktop_background_resources.h#newcode34 ash/desktop_background/desktop_background_resources.h:34: ...
8 years, 5 months ago (2012-07-18 18:35:02 UTC) #9
bshe
On 2012/07/18 18:35:02, bshe wrote: > @flackr > > Done. Could you please take another ...
8 years, 5 months ago (2012-07-19 22:42:11 UTC) #10
Mihai Parparita -not on Chrome
http://codereview.chromium.org/10754014/diff/47001/chrome/browser/chromeos/extensions/wallpaper_private_api.cc File chrome/browser/chromeos/extensions/wallpaper_private_api.cc (right): http://codereview.chromium.org/10754014/diff/47001/chrome/browser/chromeos/extensions/wallpaper_private_api.cc#newcode39 chrome/browser/chromeos/extensions/wallpaper_private_api.cc:39: const char kWallpaperManagerDomain[] = "obklkkbkpaoaejdabbfldmcfplpdgolj"; We generally refer to ...
8 years, 5 months ago (2012-07-20 00:17:05 UTC) #11
bshe
mihai@ Done. Could you please take another look? Thanks! http://codereview.chromium.org/10754014/diff/47001/chrome/browser/chromeos/extensions/wallpaper_private_api.cc File chrome/browser/chromeos/extensions/wallpaper_private_api.cc (right): http://codereview.chromium.org/10754014/diff/47001/chrome/browser/chromeos/extensions/wallpaper_private_api.cc#newcode39 chrome/browser/chromeos/extensions/wallpaper_private_api.cc:39: ...
8 years, 5 months ago (2012-07-22 23:59:42 UTC) #12
flackr
http://codereview.chromium.org/10754014/diff/34035/chrome/browser/chromeos/extensions/wallpaper_manager_util.cc File chrome/browser/chromeos/extensions/wallpaper_manager_util.cc (right): http://codereview.chromium.org/10754014/diff/34035/chrome/browser/chromeos/extensions/wallpaper_manager_util.cc#newcode49 chrome/browser/chromeos/extensions/wallpaper_manager_util.cc:49: } //namespace wallpaper_manager_util The original line is correct, there ...
8 years, 5 months ago (2012-07-23 20:52:46 UTC) #13
bshe
http://codereview.chromium.org/10754014/diff/34035/chrome/browser/chromeos/extensions/wallpaper_manager_util.cc File chrome/browser/chromeos/extensions/wallpaper_manager_util.cc (right): http://codereview.chromium.org/10754014/diff/34035/chrome/browser/chromeos/extensions/wallpaper_manager_util.cc#newcode49 chrome/browser/chromeos/extensions/wallpaper_manager_util.cc:49: } //namespace wallpaper_manager_util On 2012/07/23 20:52:46, flackr wrote: > ...
8 years, 5 months ago (2012-07-23 21:01:54 UTC) #14
bshe
On 2012/07/23 21:01:54, bshe wrote: > http://codereview.chromium.org/10754014/diff/34035/chrome/browser/chromeos/extensions/wallpaper_manager_util.cc > File chrome/browser/chromeos/extensions/wallpaper_manager_util.cc (right): > > http://codereview.chromium.org/10754014/diff/34035/chrome/browser/chromeos/extensions/wallpaper_manager_util.cc#newcode49 > ...
8 years, 5 months ago (2012-07-24 16:01:28 UTC) #15
Mihai Parparita -not on Chrome
LGTM
8 years, 5 months ago (2012-07-25 00:04:57 UTC) #16
flackr
LGTM too
8 years, 5 months ago (2012-07-25 00:05:30 UTC) #17
bshe
Thanks! Owners: +sky for ash/* +jhawkins for: chrome/browser/ui/webui/options2/browser_options_handler.cc chrome/browser/resources/chromeos/wallpaper_manager/manifest.json
8 years, 5 months ago (2012-07-25 15:04:49 UTC) #18
James Hawkins
My files LGTM
8 years, 5 months ago (2012-07-25 15:06:07 UTC) #19
sky
http://codereview.chromium.org/10754014/diff/43014/ash/desktop_background/desktop_background_resources.h File ash/desktop_background/desktop_background_resources.h (right): http://codereview.chromium.org/10754014/diff/43014/ash/desktop_background/desktop_background_resources.h#newcode37 ash/desktop_background/desktop_background_resources.h:37: ASH_EXPORT WallpaperLayout GetLayoutEnum(const char* layout); Why does this take ...
8 years, 5 months ago (2012-07-25 16:14:42 UTC) #20
bshe
sky@ Done. Could you please take another look? Thanks! http://codereview.chromium.org/10754014/diff/43014/ash/desktop_background/desktop_background_resources.h File ash/desktop_background/desktop_background_resources.h (right): http://codereview.chromium.org/10754014/diff/43014/ash/desktop_background/desktop_background_resources.h#newcode37 ash/desktop_background/desktop_background_resources.h:37: ...
8 years, 5 months ago (2012-07-25 16:39:36 UTC) #21
sky
LGTM
8 years, 5 months ago (2012-07-25 16:59:40 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bshe@chromium.org/10754014/61001
8 years, 5 months ago (2012-07-25 17:11:14 UTC) #23
commit-bot: I haz the power
Try job failure for 10754014-61001 (retry) on linux_chromeos for step "compile" (clobber build). It's a ...
8 years, 5 months ago (2012-07-25 17:37:03 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bshe@chromium.org/10754014/64002
8 years, 5 months ago (2012-07-25 18:57:23 UTC) #25
commit-bot: I haz the power
Change committed as 148400
8 years, 5 months ago (2012-07-25 20:24:11 UTC) #26
Mihai Parparita -not on Chrome
8 years, 4 months ago (2012-08-07 21:16:40 UTC) #27
https://chromiumcodereview.appspot.com/10754014/diff/64002/chrome/common/exte...
File chrome/common/extensions/api/_permission_features.json (right):

https://chromiumcodereview.appspot.com/10754014/diff/64002/chrome/common/exte...
chrome/common/extensions/api/_permission_features.json:296: "extension_types":
["extension", "packaged_app"],
If you need to use this API in a v2 app, you'll need to add "platform_app" to
the list.

Powered by Google App Engine
This is Rietveld 408576698