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

Issue 1399623003: bluetooth: Change BluetoothSupplement::from(ScriptState*) to from(LocalFrame*) (Closed)

Created:
5 years, 2 months ago by ortuno
Modified:
5 years, 2 months ago
CC:
blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, dglazkov+blink, scheib+watch_chromium.org, Jeffrey Yasskin
Base URL:
https://chromium.googlesource.com/chromium/src.git@my-origin
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

bluetooth: Change BluetoothSupplement::from(ScriptState*) to from(LocalFrame*) BluetoothSupplement belongs to LocalFrame so we should only have from(LocalFrame*). Also removes bluetooth from Platform as it is not needed yet. BUG=420275 Committed: https://crrev.com/bc969e58f6459e8552e2b0d128f030673f7c7a54 Cr-Commit-Position: refs/heads/master@{#354070}

Patch Set 1 #

Patch Set 2 : cClean up #

Patch Set 3 : Moar cleanup #

Total comments: 8

Patch Set 4 : Add assert for supplement and changed to use executionContext #

Total comments: 2

Messages

Total messages: 29 (7 generated)
ortuno
haraken: PTAL
5 years, 2 months ago (2015-10-09 17:33:01 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1399623003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1399623003/40001
5 years, 2 months ago (2015-10-09 17:35:02 UTC) #4
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 2 months ago (2015-10-09 19:01:36 UTC) #6
haraken
https://codereview.chromium.org/1399623003/diff/40001/third_party/WebKit/Source/modules/bluetooth/BluetoothSupplement.cpp File third_party/WebKit/Source/modules/bluetooth/BluetoothSupplement.cpp (right): https://codereview.chromium.org/1399623003/diff/40001/third_party/WebKit/Source/modules/bluetooth/BluetoothSupplement.cpp#newcode31 third_party/WebKit/Source/modules/bluetooth/BluetoothSupplement.cpp:31: if (supplement && supplement->m_bluetooth) If the supplement is 0, ...
5 years, 2 months ago (2015-10-10 14:09:57 UTC) #7
ortuno
Thanks! https://codereview.chromium.org/1399623003/diff/40001/third_party/WebKit/Source/modules/bluetooth/BluetoothSupplement.cpp File third_party/WebKit/Source/modules/bluetooth/BluetoothSupplement.cpp (right): https://codereview.chromium.org/1399623003/diff/40001/third_party/WebKit/Source/modules/bluetooth/BluetoothSupplement.cpp#newcode31 third_party/WebKit/Source/modules/bluetooth/BluetoothSupplement.cpp:31: if (supplement && supplement->m_bluetooth) On 2015/10/10 at 14:09:57, ...
5 years, 2 months ago (2015-10-12 17:33:52 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1399623003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1399623003/60001
5 years, 2 months ago (2015-10-12 17:36:59 UTC) #10
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 2 months ago (2015-10-12 19:01:01 UTC) #12
Jeffrey Yasskin
https://codereview.chromium.org/1399623003/diff/40001/third_party/WebKit/Source/modules/bluetooth/BluetoothSupplement.cpp File third_party/WebKit/Source/modules/bluetooth/BluetoothSupplement.cpp (right): https://codereview.chromium.org/1399623003/diff/40001/third_party/WebKit/Source/modules/bluetooth/BluetoothSupplement.cpp#newcode39 third_party/WebKit/Source/modules/bluetooth/BluetoothSupplement.cpp:39: if (window && window->frame()) { On 2015/10/12 17:33:52, ortuno ...
5 years, 2 months ago (2015-10-12 21:57:24 UTC) #13
haraken
https://codereview.chromium.org/1399623003/diff/40001/third_party/WebKit/Source/modules/bluetooth/BluetoothSupplement.cpp File third_party/WebKit/Source/modules/bluetooth/BluetoothSupplement.cpp (right): https://codereview.chromium.org/1399623003/diff/40001/third_party/WebKit/Source/modules/bluetooth/BluetoothSupplement.cpp#newcode39 third_party/WebKit/Source/modules/bluetooth/BluetoothSupplement.cpp:39: if (window && window->frame()) { On 2015/10/12 21:57:24, Jeffrey ...
5 years, 2 months ago (2015-10-12 23:29:25 UTC) #14
ortuno
On 2015/10/12 23:29:25, haraken wrote: > https://codereview.chromium.org/1399623003/diff/40001/third_party/WebKit/Source/modules/bluetooth/BluetoothSupplement.cpp > File third_party/WebKit/Source/modules/bluetooth/BluetoothSupplement.cpp > (right): > > https://codereview.chromium.org/1399623003/diff/40001/third_party/WebKit/Source/modules/bluetooth/BluetoothSupplement.cpp#newcode39 ...
5 years, 2 months ago (2015-10-13 01:42:20 UTC) #15
haraken
On 2015/10/13 01:42:20, ortuno wrote: > On 2015/10/12 23:29:25, haraken wrote: > > > https://codereview.chromium.org/1399623003/diff/40001/third_party/WebKit/Source/modules/bluetooth/BluetoothSupplement.cpp ...
5 years, 2 months ago (2015-10-13 01:44:34 UTC) #16
ortuno
On 2015/10/13 01:44:34, haraken wrote: > On 2015/10/13 01:42:20, ortuno wrote: > > On 2015/10/12 ...
5 years, 2 months ago (2015-10-13 01:47:16 UTC) #17
haraken
https://codereview.chromium.org/1399623003/diff/60001/third_party/WebKit/Source/modules/bluetooth/BluetoothSupplement.cpp File third_party/WebKit/Source/modules/bluetooth/BluetoothSupplement.cpp (right): https://codereview.chromium.org/1399623003/diff/60001/third_party/WebKit/Source/modules/bluetooth/BluetoothSupplement.cpp#newcode43 third_party/WebKit/Source/modules/bluetooth/BluetoothSupplement.cpp:43: return BluetoothSupplement::from(static_cast<Document*>(scriptState->executionContext())->frame()); After landing the other CL, you should ...
5 years, 2 months ago (2015-10-13 02:05:09 UTC) #18
ortuno
https://codereview.chromium.org/1399623003/diff/60001/third_party/WebKit/Source/modules/bluetooth/BluetoothSupplement.cpp File third_party/WebKit/Source/modules/bluetooth/BluetoothSupplement.cpp (right): https://codereview.chromium.org/1399623003/diff/60001/third_party/WebKit/Source/modules/bluetooth/BluetoothSupplement.cpp#newcode43 third_party/WebKit/Source/modules/bluetooth/BluetoothSupplement.cpp:43: return BluetoothSupplement::from(static_cast<Document*>(scriptState->executionContext())->frame()); On 2015/10/13 02:05:09, haraken wrote: > > ...
5 years, 2 months ago (2015-10-13 15:40:29 UTC) #19
haraken
On 2015/10/13 15:40:29, ortuno wrote: > https://codereview.chromium.org/1399623003/diff/60001/third_party/WebKit/Source/modules/bluetooth/BluetoothSupplement.cpp > File third_party/WebKit/Source/modules/bluetooth/BluetoothSupplement.cpp > (right): > > https://codereview.chromium.org/1399623003/diff/60001/third_party/WebKit/Source/modules/bluetooth/BluetoothSupplement.cpp#newcode43 ...
5 years, 2 months ago (2015-10-13 15:41:43 UTC) #20
ortuno
jyasskin: PTAL at Source/modules/bluetooth japhet: PTAL public/platform/Platform.h
5 years, 2 months ago (2015-10-13 15:42:34 UTC) #22
Jeffrey Yasskin
LGTM I don't really see the need to rename BluetoothSupplement::from to BluetoothSupplement::fromScriptState or to expose ...
5 years, 2 months ago (2015-10-13 15:52:07 UTC) #23
ortuno
japhet: ping for public/platform/Platform.h
5 years, 2 months ago (2015-10-14 15:19:32 UTC) #24
Nate Chapin
public/platform LGTM
5 years, 2 months ago (2015-10-14 16:48:15 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1399623003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1399623003/60001
5 years, 2 months ago (2015-10-14 16:49:14 UTC) #27
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 2 months ago (2015-10-14 18:23:24 UTC) #28
commit-bot: I haz the power
5 years, 2 months ago (2015-10-14 18:24:27 UTC) #29
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/bc969e58f6459e8552e2b0d128f030673f7c7a54
Cr-Commit-Position: refs/heads/master@{#354070}

Powered by Google App Engine
This is Rietveld 408576698