|
|
Created:
4 years, 3 months ago by Muyuan Modified:
4 years, 1 month ago CC:
Aaron Boodman, abarth-chromium, chromium-reviews, darin (slow to review), davemoore+watch_chromium.org, elijahtaylor+arcwatch_chromium.org, hidehiko+watch_chromium.org, lhchavez+watch_chromium.org, oshima+watch_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yusukes+watch_chromium.org, yzshen+watch_chromium.org Base URL:
https://chromium.googlesource.com/chromium/src.git@master Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
Descriptioncheets: deprecate setWallpaper from ArcIntentHelper.
This CL deprecates setWallpaper call in intent_helper.mojom.
It also removes set_wallpaper_delegate.h since it's no
longer needed.
This is going to be committed only after ag/1432663/ enters
canary.
Test=Manually test setting wallpaper with OGQ Backgrounds
app in Arc++.
Bug=642465
Committed: https://crrev.com/0b7b15bafeb502cdaef5744f66426a341463f18e
Cr-Commit-Position: refs/heads/master@{#419015}
Patch Set 1 #
Total comments: 5
Patch Set 2 : Instead of removing SetWallpaper, rename it to SetWallpaperDeprecated. #
Total comments: 2
Patch Set 3 : Add deprecate method ID to intent_helper.mojom #Patch Set 4 : reduce setting wallpaper latency. #
Messages
Total messages: 27 (9 generated)
muyuanli@chromium.org changed reviewers: + lhchavez@chromium.org, yusukes@chromium.org
https://codereview.chromium.org/2332063004/diff/1/components/arc/intent_helpe... File components/arc/intent_helper/arc_intent_helper_bridge.cc (left): https://codereview.chromium.org/2332063004/diff/1/components/arc/intent_helpe... components/arc/intent_helper/arc_intent_helper_bridge.cc:12: #include "ash/common/wallpaper/wallpaper_delegate.h" This looks unused now.
https://codereview.chromium.org/2332063004/diff/1/components/arc/intent_helpe... File components/arc/intent_helper/arc_intent_helper_bridge.cc (left): https://codereview.chromium.org/2332063004/diff/1/components/arc/intent_helpe... components/arc/intent_helper/arc_intent_helper_bridge.cc:12: #include "ash/common/wallpaper/wallpaper_delegate.h" On 2016/09/12 21:57:22, Luis Héctor Chávez wrote: > This looks unused now. It seems to be used to open wallpaper picker page: https://cs.chromium.org/chromium/src/components/arc/intent_helper/arc_intent_...
https://codereview.chromium.org/2332063004/diff/1/components/arc/common/inten... File components/arc/common/intent_helper.mojom (left): https://codereview.chromium.org/2332063004/diff/1/components/arc/common/inten... components/arc/common/intent_helper.mojom:94: [MinVersion=8] SetWallpaper@4(array<uint8> jpeg_data); Removing the interface right after the canary builder picks up your Android CL sounds a bit scary to me still. For example, ARC++ will suddenly start crashing if someone (ARC constable etc.) reverts your Android CL for whatever reason after this Chromium CL is landed. I thought the convention is to add "Deprecated" suffix to a method while keeping the @N number the same (so SetWallpaperDeprecated@4 in this case) and change the implementation to something like: void ...Bridge::...Deprecared(...) { LOG(ERROR) << "...."; } This way, we can at least avoid crashes even if someone revert your Android CL later. WDYT? Luis: do we have any guideline on this? https://codereview.chromium.org/2332063004/diff/1/components/arc/common/inten... File components/arc/common/intent_helper.mojom (right): https://codereview.chromium.org/2332063004/diff/1/components/arc/common/inten... components/arc/common/intent_helper.mojom:1: // Copyright 2016 The Chromium Authors. All rights reserved. Please also update the mojom file in the Android tree once you land this.
https://codereview.chromium.org/2332063004/diff/1/components/arc/common/inten... File components/arc/common/intent_helper.mojom (left): https://codereview.chromium.org/2332063004/diff/1/components/arc/common/inten... components/arc/common/intent_helper.mojom:94: [MinVersion=8] SetWallpaper@4(array<uint8> jpeg_data); On 2016/09/12 23:41:02, Yusuke Sato wrote: > Removing the interface right after the canary builder picks up your Android CL > sounds a bit scary to me still. For example, ARC++ will suddenly start crashing > if someone (ARC constable etc.) reverts your Android CL for whatever reason > after this Chromium CL is landed. > > I thought the convention is to add "Deprecated" suffix to a method while keeping > the @N number the same (so SetWallpaperDeprecated@4 in this case) and change the > implementation to something like: > > void ...Bridge::...Deprecared(...) { > LOG(ERROR) << "...."; > } > > This way, we can at least avoid crashes even if someone revert your Android CL > later. WDYT? > > Luis: do we have any guideline on this? Acknowledged.
thanks, lgtm, defer to Luis. Please also update the CL description (s/remove/deprecate/g). https://codereview.chromium.org/2332063004/diff/20001/components/arc/common/i... File components/arc/common/intent_helper.mojom (right): https://codereview.chromium.org/2332063004/diff/20001/components/arc/common/i... components/arc/common/intent_helper.mojom:74: // Next method ID: 6 Please add // Deprecated method ID: 4 between line 73 and 74.
Description was changed from ========== cheets: remove setWallpaper from ArcIntentHelper. This CL removes setWallpaper call from ArcIntentHelper and correspondingly, intent_helper.mojom. It also removes set_wallpaper_delegate.h since it's no longer needed. This is going to be committed only after ag/1432663/ enters canary. Commit=false Test=Manually test setting wallpaper with OGQ Backgrounds app in Arc++. Bug=642465 ========== to ========== cheets: remove setWallpaper from ArcIntentHelper. This CL deprecates setWallpaper call in intent_helper.mojom. It also removes set_wallpaper_delegate.h since it's no longer needed. This is going to be committed only after ag/1432663/ enters canary. Commit=false Test=Manually test setting wallpaper with OGQ Backgrounds app in Arc++. Bug=642465 ==========
https://codereview.chromium.org/2332063004/diff/20001/components/arc/common/i... File components/arc/common/intent_helper.mojom (right): https://codereview.chromium.org/2332063004/diff/20001/components/arc/common/i... components/arc/common/intent_helper.mojom:74: // Next method ID: 6 On 2016/09/13 23:19:28, Yusuke Sato wrote: > Please add > > // Deprecated method ID: 4 > > between line 73 and 74. Done.
lgtm
lgtm
Description was changed from ========== cheets: remove setWallpaper from ArcIntentHelper. This CL deprecates setWallpaper call in intent_helper.mojom. It also removes set_wallpaper_delegate.h since it's no longer needed. This is going to be committed only after ag/1432663/ enters canary. Commit=false Test=Manually test setting wallpaper with OGQ Backgrounds app in Arc++. Bug=642465 ========== to ========== cheets: deprecate setWallpaper from ArcIntentHelper. This CL deprecates setWallpaper call in intent_helper.mojom. It also removes set_wallpaper_delegate.h since it's no longer needed. This is going to be committed only after ag/1432663/ enters canary. Test=Manually test setting wallpaper with OGQ Backgrounds app in Arc++. Bug=642465 ==========
The CQ bit was checked by muyuanli@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presub...)
ah, rickyz@'s review for mojom is also necessary.
yusukes@chromium.org changed reviewers: + rickyz@chromium.org
+Ricky
lgtm
Correspoonding Android change has landed ToT with ARC build #3265915 and #3271145.
The CQ bit was checked by muyuanli@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Description was changed from ========== cheets: deprecate setWallpaper from ArcIntentHelper. This CL deprecates setWallpaper call in intent_helper.mojom. It also removes set_wallpaper_delegate.h since it's no longer needed. This is going to be committed only after ag/1432663/ enters canary. Test=Manually test setting wallpaper with OGQ Backgrounds app in Arc++. Bug=642465 ========== to ========== cheets: deprecate setWallpaper from ArcIntentHelper. This CL deprecates setWallpaper call in intent_helper.mojom. It also removes set_wallpaper_delegate.h since it's no longer needed. This is going to be committed only after ag/1432663/ enters canary. Test=Manually test setting wallpaper with OGQ Backgrounds app in Arc++. Bug=642465 ==========
Message was sent while issue was closed.
Committed patchset #3 (id:40001)
Message was sent while issue was closed.
Description was changed from ========== cheets: deprecate setWallpaper from ArcIntentHelper. This CL deprecates setWallpaper call in intent_helper.mojom. It also removes set_wallpaper_delegate.h since it's no longer needed. This is going to be committed only after ag/1432663/ enters canary. Test=Manually test setting wallpaper with OGQ Backgrounds app in Arc++. Bug=642465 ========== to ========== cheets: deprecate setWallpaper from ArcIntentHelper. This CL deprecates setWallpaper call in intent_helper.mojom. It also removes set_wallpaper_delegate.h since it's no longer needed. This is going to be committed only after ag/1432663/ enters canary. Test=Manually test setting wallpaper with OGQ Backgrounds app in Arc++. Bug=642465 Committed: https://crrev.com/0b7b15bafeb502cdaef5744f66426a341463f18e Cr-Commit-Position: refs/heads/master@{#419015} ==========
Message was sent while issue was closed.
Patchset 3 (id:??) landed as https://crrev.com/0b7b15bafeb502cdaef5744f66426a341463f18e Cr-Commit-Position: refs/heads/master@{#419015} |