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

Issue 11360200: Decouple bluetooth_event_router from extension_system. (Closed)

Created:
8 years, 1 month ago by youngki
Modified:
8 years, 1 month ago
CC:
chromium-reviews, Aaron Boodman, chromium-apps-reviews_chromium.org, bryeung, Matt Perry
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Decouple bluetooth_event_router from extension_system. I put bluetooth_event_router on its own module, and implemented EventRouter::Observer so that BluetoothEventRouter can listen to bluetooth events. I mostly followed Yoyo's example: https://chromiumcodereview.appspot.com/11351004/ to move bluetooth_event_router on its own module. BUG=135470 TBR=sky@chromium.org Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=167534

Patch Set 1 #

Total comments: 10

Patch Set 2 : Added BluetoothEventRouter implementation. #

Patch Set 3 : Removed unnecessary if block #

Total comments: 10

Patch Set 4 : Removed socket checks from creating and removing adapters. #

Total comments: 14

Patch Set 5 : Removed MockBluetoothSocket #

Unified diffs Side-by-side diffs Delta from patch set Stats (+262 lines, -329 lines) Patch
M chrome/browser/extensions/api/bluetooth/bluetooth_api.h View 1 2 3 4 2 chunks +32 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/bluetooth/bluetooth_api.cc View 1 2 3 4 4 chunks +41 lines, -5 lines 0 comments Download
A + chrome/browser/extensions/api/bluetooth/bluetooth_api_factory.h View 2 chunks +12 lines, -11 lines 0 comments Download
A chrome/browser/extensions/api/bluetooth/bluetooth_api_factory.cc View 1 chunk +50 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/bluetooth/bluetooth_apitest.cc View 2 chunks +3 lines, -3 lines 0 comments Download
A + chrome/browser/extensions/api/bluetooth/bluetooth_event_router.h View 1 2 3 5 chunks +17 lines, -10 lines 0 comments Download
A + chrome/browser/extensions/api/bluetooth/bluetooth_event_router.cc View 1 2 3 4 7 chunks +48 lines, -11 lines 0 comments Download
A chrome/browser/extensions/api/bluetooth/bluetooth_event_router_unittest.cc View 1 2 3 4 1 chunk +51 lines, -0 lines 0 comments Download
D chrome/browser/extensions/bluetooth_event_router.h View 1 chunk +0 lines, -102 lines 0 comments Download
D chrome/browser/extensions/bluetooth_event_router.cc View 1 chunk +0 lines, -175 lines 0 comments Download
M chrome/browser/extensions/extension_service.h View 3 chunks +0 lines, -7 lines 0 comments Download
M chrome/browser/extensions/extension_service.cc View 2 chunks +0 lines, -3 lines 0 comments Download
M chrome/browser/profiles/profile_dependency_manager.cc View 1 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
youngki
Hi Yoyo, Could you review this CL? This basically follows your ProcessesAPI CL and moves ...
8 years, 1 month ago (2012-11-12 18:56:15 UTC) #1
Yoyo Zhou
https://chromiumcodereview.appspot.com/11360200/diff/1/chrome/browser/extensions/api/bluetooth/bluetooth_api.cc File chrome/browser/extensions/api/bluetooth/bluetooth_api.cc (right): https://chromiumcodereview.appspot.com/11360200/diff/1/chrome/browser/extensions/api/bluetooth/bluetooth_api.cc#newcode118 chrome/browser/extensions/api/bluetooth/bluetooth_api.cc:118: NOTIMPLEMENTED(); I don't understand. Can you explain what this ...
8 years, 1 month ago (2012-11-12 20:03:56 UTC) #2
bryeung
https://chromiumcodereview.appspot.com/11360200/diff/1/chrome/browser/extensions/api/bluetooth/bluetooth_api.cc File chrome/browser/extensions/api/bluetooth/bluetooth_api.cc (right): https://chromiumcodereview.appspot.com/11360200/diff/1/chrome/browser/extensions/api/bluetooth/bluetooth_api.cc#newcode111 chrome/browser/extensions/api/bluetooth/bluetooth_api.cc:111: if (!bluetooth_event_router_) { no braces https://chromiumcodereview.appspot.com/11360200/diff/1/chrome/browser/extensions/api/bluetooth/bluetooth_api.cc#newcode118 chrome/browser/extensions/api/bluetooth/bluetooth_api.cc:118: NOTIMPLEMENTED(); Seems ...
8 years, 1 month ago (2012-11-12 20:44:39 UTC) #3
Yoyo Zhou
https://chromiumcodereview.appspot.com/11360200/diff/1/chrome/browser/extensions/api/bluetooth/bluetooth_api_factory.cc File chrome/browser/extensions/api/bluetooth/bluetooth_api_factory.cc (right): https://chromiumcodereview.appspot.com/11360200/diff/1/chrome/browser/extensions/api/bluetooth/bluetooth_api_factory.cc#newcode47 chrome/browser/extensions/api/bluetooth/bluetooth_api_factory.cc:47: return true; On 2012/11/12 20:44:39, bryeung wrote: > really? ...
8 years, 1 month ago (2012-11-12 21:06:01 UTC) #4
youngki
https://chromiumcodereview.appspot.com/11360200/diff/1/chrome/browser/extensions/api/bluetooth/bluetooth_api.cc File chrome/browser/extensions/api/bluetooth/bluetooth_api.cc (right): https://chromiumcodereview.appspot.com/11360200/diff/1/chrome/browser/extensions/api/bluetooth/bluetooth_api.cc#newcode111 chrome/browser/extensions/api/bluetooth/bluetooth_api.cc:111: if (!bluetooth_event_router_) { On 2012/11/12 20:44:39, bryeung wrote: > ...
8 years, 1 month ago (2012-11-13 01:14:13 UTC) #5
bryeung
https://chromiumcodereview.appspot.com/11360200/diff/9001/chrome/browser/extensions/api/bluetooth/bluetooth_api.h File chrome/browser/extensions/api/bluetooth/bluetooth_api.h (right): https://chromiumcodereview.appspot.com/11360200/diff/9001/chrome/browser/extensions/api/bluetooth/bluetooth_api.h#newcode39 chrome/browser/extensions/api/bluetooth/bluetooth_api.h:39: // Convenience method to get the BluetoothAPI for a ...
8 years, 1 month ago (2012-11-13 15:14:43 UTC) #6
youngki
https://chromiumcodereview.appspot.com/11360200/diff/9001/chrome/browser/extensions/api/bluetooth/bluetooth_api.h File chrome/browser/extensions/api/bluetooth/bluetooth_api.h (right): https://chromiumcodereview.appspot.com/11360200/diff/9001/chrome/browser/extensions/api/bluetooth/bluetooth_api.h#newcode39 chrome/browser/extensions/api/bluetooth/bluetooth_api.h:39: // Convenience method to get the BluetoothAPI for a ...
8 years, 1 month ago (2012-11-13 16:09:49 UTC) #7
bryeung
https://chromiumcodereview.appspot.com/11360200/diff/2002/chrome/browser/extensions/api/bluetooth/bluetooth_api.h File chrome/browser/extensions/api/bluetooth/bluetooth_api.h (right): https://chromiumcodereview.appspot.com/11360200/diff/2002/chrome/browser/extensions/api/bluetooth/bluetooth_api.h#newcode42 chrome/browser/extensions/api/bluetooth/bluetooth_api.h:42: ExtensionBluetoothEventRouter* bluetooth_event_router(); also move this about Shutdown https://chromiumcodereview.appspot.com/11360200/diff/2002/chrome/browser/extensions/api/bluetooth/bluetooth_event_router.cc File ...
8 years, 1 month ago (2012-11-13 16:16:15 UTC) #8
youngki
https://chromiumcodereview.appspot.com/11360200/diff/2002/chrome/browser/extensions/api/bluetooth/bluetooth_api.h File chrome/browser/extensions/api/bluetooth/bluetooth_api.h (right): https://chromiumcodereview.appspot.com/11360200/diff/2002/chrome/browser/extensions/api/bluetooth/bluetooth_api.h#newcode42 chrome/browser/extensions/api/bluetooth/bluetooth_api.h:42: ExtensionBluetoothEventRouter* bluetooth_event_router(); On 2012/11/13 16:16:15, bryeung wrote: > also ...
8 years, 1 month ago (2012-11-13 17:01:30 UTC) #9
bryeung
lgtm
8 years, 1 month ago (2012-11-13 18:22:15 UTC) #10
Yoyo Zhou
LGTM, please make sure tests pass
8 years, 1 month ago (2012-11-13 19:57:52 UTC) #11
Elliot Glaysher
profiles lgtm
8 years, 1 month ago (2012-11-13 20:05:35 UTC) #12
youngki
Thanks for the reviews. Currently win_rel and android_clang_dbg don't pass, but they don't seem to ...
8 years, 1 month ago (2012-11-13 21:43:23 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/youngki@chromium.org/11360200/13001
8 years, 1 month ago (2012-11-13 21:44:33 UTC) #14
commit-bot: I haz the power
8 years, 1 month ago (2012-11-14 00:42:40 UTC) #15
Change committed as 167534

Powered by Google App Engine
This is Rietveld 408576698