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

Issue 2571853003: Move PW message handler logic to components (Closed)

Created:
4 years ago by cco3
Modified:
3 years, 11 months ago
CC:
chromium-reviews, pkl (ping after 24h if needed), sdefresne+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move PW message handler logic to components We need a Physical Web WebUI on both iOS and Android. In order to support both and share code, we need to place all core message handler logic in components. BUG=663842 Committed: https://crrev.com/c07a45d17ce723ac166020b5c108448baf765035 Cr-Commit-Position: refs/heads/master@{#440989}

Patch Set 1 #

Patch Set 2 : Restore url_constants.h include #

Total comments: 10

Patch Set 3 : Limit ourselves to the sadness that is single inheritance #

Total comments: 31

Patch Set 4 : Address style/syntax comments #

Total comments: 16

Patch Set 5 : More style/syntax comments #

Patch Set 6 : Fix a handful of compilation errors #

Patch Set 7 : Use default destructor #

Patch Set 8 : Set WebUI at handler Registration time #

Unified diffs Side-by-side diffs Delta from patch set Stats (+164 lines, -64 lines) Patch
M components/physical_web/webui/BUILD.gn View 1 chunk +3 lines, -0 lines 0 comments Download
A components/physical_web/webui/physical_web_base_message_handler.h View 1 2 3 4 5 6 1 chunk +58 lines, -0 lines 0 comments Download
A components/physical_web/webui/physical_web_base_message_handler.cc View 1 2 3 4 1 chunk +70 lines, -0 lines 0 comments Download
M ios/chrome/browser/ui/webui/physical_web_ui.cc View 1 2 3 4 5 6 7 4 chunks +33 lines, -64 lines 0 comments Download

Messages

Total messages: 46 (28 generated)
cco3
4 years ago (2016-12-13 19:27:00 UTC) #2
mattreynolds
https://codereview.chromium.org/2571853003/diff/20001/components/physical_web/webui/physical_web_base_message_handler.cc File components/physical_web/webui/physical_web_base_message_handler.cc (right): https://codereview.chromium.org/2571853003/diff/20001/components/physical_web/webui/physical_web_base_message_handler.cc#newcode29 components/physical_web/webui/physical_web_base_message_handler.cc:29: base::Bind(&PhysicalWebBaseMessageHandler::HandleRequestNearbyURLs, src/docs/callback.md suggests we should use base::BindRepeating since base::Bind ...
4 years ago (2016-12-13 22:40:13 UTC) #4
cco3
https://codereview.chromium.org/2571853003/diff/20001/components/physical_web/webui/physical_web_base_message_handler.cc File components/physical_web/webui/physical_web_base_message_handler.cc (right): https://codereview.chromium.org/2571853003/diff/20001/components/physical_web/webui/physical_web_base_message_handler.cc#newcode29 components/physical_web/webui/physical_web_base_message_handler.cc:29: base::Bind(&PhysicalWebBaseMessageHandler::HandleRequestNearbyURLs, On 2016/12/13 22:40:13, mattreynolds wrote: > src/docs/callback.md suggests ...
4 years ago (2016-12-21 18:06:58 UTC) #5
mattreynolds
lgtm
4 years ago (2016-12-21 18:45:39 UTC) #6
cco3
Hi jyquinn@, would you be able to review this ios/chrome/browser/ui/webui/ file?
4 years ago (2016-12-21 19:15:37 UTC) #8
Jackie Quinn
I'm no longer an owner, so I'm not the review you're looking for. Added eugenebut
4 years ago (2016-12-22 01:45:57 UTC) #10
Eugene But (OOO till 7-30)
This change does not compile on iOS https://codereview.chromium.org/2571853003/diff/40001/ios/chrome/browser/ui/webui/physical_web_ui.cc File ios/chrome/browser/ui/webui/physical_web_ui.cc (right): https://codereview.chromium.org/2571853003/diff/40001/ios/chrome/browser/ui/webui/physical_web_ui.cc#newcode39 ios/chrome/browser/ui/webui/physical_web_ui.cc:39: class MessageHandlerImpl ...
4 years ago (2016-12-22 16:09:23 UTC) #13
cco3
On 2016/12/22 16:09:23, Eugene But wrote: > This change does not compile on iOS Sorry, ...
4 years ago (2016-12-22 17:52:39 UTC) #16
Eugene But (OOO till 7-30)
On 2016/12/22 17:52:39, cco3 wrote: > On 2016/12/22 16:09:23, Eugene But wrote: > > This ...
4 years ago (2016-12-22 18:42:05 UTC) #17
cco3
On 2016/12/22 18:42:05, Eugene But wrote: > On 2016/12/22 17:52:39, cco3 wrote: > > On ...
4 years ago (2016-12-22 18:49:55 UTC) #18
Eugene But (OOO till 7-30)
Thanks for explanation. https://codereview.chromium.org/2571853003/diff/40001/components/physical_web/webui/physical_web_base_message_handler.cc File components/physical_web/webui/physical_web_base_message_handler.cc (right): https://codereview.chromium.org/2571853003/diff/40001/components/physical_web/webui/physical_web_base_message_handler.cc#newcode41 components/physical_web/webui/physical_web_base_message_handler.cc:41: base::DictionaryValue* metadata_item = NULL; nit: s/NULL/nullptr ...
4 years ago (2016-12-22 19:04:47 UTC) #19
cco3
On 2016/12/22 19:04:47, Eugene But wrote: > Thanks for explanation. > > https://codereview.chromium.org/2571853003/diff/40001/components/physical_web/webui/physical_web_base_message_handler.cc > File ...
4 years ago (2016-12-22 19:51:51 UTC) #20
cco3
https://codereview.chromium.org/2571853003/diff/40001/components/physical_web/webui/physical_web_base_message_handler.cc File components/physical_web/webui/physical_web_base_message_handler.cc (right): https://codereview.chromium.org/2571853003/diff/40001/components/physical_web/webui/physical_web_base_message_handler.cc#newcode41 components/physical_web/webui/physical_web_base_message_handler.cc:41: base::DictionaryValue* metadata_item = NULL; On 2016/12/22 19:04:47, Eugene But ...
4 years ago (2016-12-22 20:14:45 UTC) #21
Eugene But (OOO till 7-30)
No worries. lgtm with changes :) https://codereview.chromium.org/2571853003/diff/40001/components/physical_web/webui/physical_web_base_message_handler.h File components/physical_web/webui/physical_web_base_message_handler.h (right): https://codereview.chromium.org/2571853003/diff/40001/components/physical_web/webui/physical_web_base_message_handler.h#newcode40 components/physical_web/webui/physical_web_base_message_handler.h:40: virtual physical_web::PhysicalWebDataSource* GetPhysicalWebDataSource() ...
4 years ago (2016-12-22 21:26:33 UTC) #22
cco3
https://codereview.chromium.org/2571853003/diff/60001/components/physical_web/webui/physical_web_base_message_handler.cc File components/physical_web/webui/physical_web_base_message_handler.cc (right): https://codereview.chromium.org/2571853003/diff/60001/components/physical_web/webui/physical_web_base_message_handler.cc#newcode19 components/physical_web/webui/physical_web_base_message_handler.cc:19: void PhysicalWebBaseMessageHandler::RegisterMessagesImpl() { On 2016/12/22 21:26:32, Eugene But wrote: ...
4 years ago (2016-12-22 22:07:08 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2571853003/140001
3 years, 11 months ago (2016-12-29 19:46:31 UTC) #41
commit-bot: I haz the power
Committed patchset #8 (id:140001)
3 years, 11 months ago (2016-12-29 21:52:53 UTC) #44
commit-bot: I haz the power
3 years, 11 months ago (2017-01-02 15:53:15 UTC) #46
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/c07a45d17ce723ac166020b5c108448baf765035
Cr-Commit-Position: refs/heads/master@{#440989}

Powered by Google App Engine
This is Rietveld 408576698