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

Issue 11316133: Added implementation of SyncEventObserver to route events to Javascript Extension. (Closed)

Created:
8 years, 1 month ago by calvinlo
Modified:
8 years ago
Reviewers:
kinuko, Lei Zhang, benwells
CC:
chromium-reviews, tzik+watch_chromium.org, Aaron Boodman, kinuko+watch, chromium-apps-reviews_chromium.org
Visibility:
Public.

Description

Added implementation of SyncEventObserver to route events to Javascript Extension. BUG=160939 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=170427

Patch Set 1 #

Total comments: 20

Patch Set 2 : Rebase after SyncEventObserver Interface updated #

Patch Set 3 : Fix comment typo #

Patch Set 4 : Fixed test to match updated SyncEventObserver interface #

Total comments: 8

Patch Set 5 : Kinuko review #2 #

Patch Set 6 : Kinuko review #2 (after little fixups) #

Total comments: 10

Patch Set 7 : Kinuko Review #3 and rebase #

Total comments: 2

Patch Set 8 : Kinuko Review #4 #

Total comments: 6

Patch Set 9 : Benwells Review #1 #

Patch Set 10 : Rebase + lint fixes #

Patch Set 11 : Fix compile #

Patch Set 12 : Fix destructor for compile #

Unified diffs Side-by-side diffs Delta from patch set Stats (+187 lines, -5 lines) Patch
A chrome/browser/extensions/api/sync_file_system/extension_sync_event_observer.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +43 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/sync_file_system/extension_sync_event_observer.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +119 lines, -0 lines 0 comments Download
M chrome/browser/extensions/event_names.h View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/extensions/event_names.cc View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/sync_file_system/sync_event_observer.h View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/sync_file_system.idl View 1 2 3 4 5 6 2 chunks +14 lines, -5 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
calvinlo
Hi Kinuko, can you please take a first pass to see if I'm on the ...
8 years, 1 month ago (2012-11-21 10:36:51 UTC) #1
kinuko
Looks good, I added some minor comments. https://codereview.chromium.org/11316133/diff/1/chrome/browser/extensions/api/sync_file_system/extension_sync_event_observer.cc File chrome/browser/extensions/api/sync_file_system/extension_sync_event_observer.cc (right): https://codereview.chromium.org/11316133/diff/1/chrome/browser/extensions/api/sync_file_system/extension_sync_event_observer.cc#newcode22 chrome/browser/extensions/api/sync_file_system/extension_sync_event_observer.cc:22: SYNC_FILE_SYSTEM_SYNC_STATE_STATUS_INITIALIZING; Wow ...
8 years, 1 month ago (2012-11-21 10:59:03 UTC) #2
calvinlo
Implements onSyncStateChanged() from SyncEventObserver and enum conversion from C++ to JavaScript (IDL) version only. https://codereview.chromium.org/11316133/diff/1/chrome/browser/extensions/api/sync_file_system/extension_sync_event_observer.cc ...
8 years ago (2012-11-28 06:01:45 UTC) #3
kinuko
https://codereview.chromium.org/11316133/diff/1/chrome/browser/extensions/api/sync_file_system/extension_sync_event_observer.cc File chrome/browser/extensions/api/sync_file_system/extension_sync_event_observer.cc (right): https://codereview.chromium.org/11316133/diff/1/chrome/browser/extensions/api/sync_file_system/extension_sync_event_observer.cc#newcode51 chrome/browser/extensions/api/sync_file_system/extension_sync_event_observer.cc:51: syncState.service_name = "drive"; On 2012/11/28 06:01:45, calvinlo wrote: > ...
8 years ago (2012-11-28 07:41:12 UTC) #4
calvinlo
If it is ok with you, I would like to send this patch in first ...
8 years ago (2012-11-28 10:43:46 UTC) #5
kinuko
looking good. https://codereview.chromium.org/11316133/diff/11003/chrome/browser/extensions/api/sync_file_system/extension_sync_event_observer.cc File chrome/browser/extensions/api/sync_file_system/extension_sync_event_observer.cc (right): https://codereview.chromium.org/11316133/diff/11003/chrome/browser/extensions/api/sync_file_system/extension_sync_event_observer.cc#newcode5 chrome/browser/extensions/api/sync_file_system/extension_sync_event_observer.cc:5: #include "chrome/browser/extensions/api/sync_file_system/extension_sync_event_observer.h" nit: please insert one empty ...
8 years ago (2012-11-28 11:06:40 UTC) #6
calvinlo
If this is all ok now, I will send to Ben next for Extension owner ...
8 years ago (2012-11-28 12:26:34 UTC) #7
calvinlo
If this is all ok now, I will send to Ben next for Extension owner ...
8 years ago (2012-11-28 12:26:34 UTC) #8
kinuko
Ok lgtm, I think it's ready for owners review https://codereview.chromium.org/11316133/diff/8006/chrome/browser/extensions/api/sync_file_system/extension_sync_event_observer.cc File chrome/browser/extensions/api/sync_file_system/extension_sync_event_observer.cc (right): https://codereview.chromium.org/11316133/diff/8006/chrome/browser/extensions/api/sync_file_system/extension_sync_event_observer.cc#newcode106 chrome/browser/extensions/api/sync_file_system/extension_sync_event_observer.cc:106: ...
8 years ago (2012-11-28 12:37:02 UTC) #9
calvinlo
https://codereview.chromium.org/11316133/diff/8006/chrome/browser/extensions/api/sync_file_system/extension_sync_event_observer.cc File chrome/browser/extensions/api/sync_file_system/extension_sync_event_observer.cc (right): https://codereview.chromium.org/11316133/diff/8006/chrome/browser/extensions/api/sync_file_system/extension_sync_event_observer.cc#newcode106 chrome/browser/extensions/api/sync_file_system/extension_sync_event_observer.cc:106: const std::string filePath = url.virtual_path().MaybeAsASCII(); On 2012/11/28 12:37:02, kinuko ...
8 years ago (2012-11-28 12:44:20 UTC) #10
calvinlo
Hi Ben, Can you please take a look for Extension ownership. Please note this patch ...
8 years ago (2012-11-28 12:47:36 UTC) #11
benwells
https://codereview.chromium.org/11316133/diff/14001/chrome/browser/extensions/api/sync_file_system/extension_sync_event_observer.cc File chrome/browser/extensions/api/sync_file_system/extension_sync_event_observer.cc (right): https://codereview.chromium.org/11316133/diff/14001/chrome/browser/extensions/api/sync_file_system/extension_sync_event_observer.cc#newcode101 chrome/browser/extensions/api/sync_file_system/extension_sync_event_observer.cc:101: const std::string extension_id = GetExtensionId(url.origin()); Nit: Index << 2 ...
8 years ago (2012-11-29 04:37:58 UTC) #12
calvinlo
https://codereview.chromium.org/11316133/diff/14001/chrome/browser/extensions/api/sync_file_system/extension_sync_event_observer.cc File chrome/browser/extensions/api/sync_file_system/extension_sync_event_observer.cc (right): https://codereview.chromium.org/11316133/diff/14001/chrome/browser/extensions/api/sync_file_system/extension_sync_event_observer.cc#newcode101 chrome/browser/extensions/api/sync_file_system/extension_sync_event_observer.cc:101: const std::string extension_id = GetExtensionId(url.origin()); On 2012/11/29 04:37:58, benwells ...
8 years ago (2012-11-29 05:01:21 UTC) #13
benwells
lgtm
8 years ago (2012-11-29 05:20:56 UTC) #14
calvinlo
Hi stig, can you please review the additions to chrome_browser_extensions.gypi. Thanks.
8 years ago (2012-11-29 06:01:41 UTC) #15
Lei Zhang
lgtm
8 years ago (2012-11-29 09:08:05 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/calvinlo@chromium.org/11316133/7024
8 years ago (2012-11-29 09:21:27 UTC) #17
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
8 years ago (2012-11-29 09:51:59 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/calvinlo@chromium.org/11316133/7024
8 years ago (2012-11-30 03:07:12 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/calvinlo@chromium.org/11316133/2007
8 years ago (2012-11-30 03:20:05 UTC) #20
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
8 years ago (2012-11-30 03:43:58 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/calvinlo@chromium.org/11316133/9016
8 years ago (2012-11-30 06:50:38 UTC) #22
commit-bot: I haz the power
8 years ago (2012-11-30 08:49:20 UTC) #23
Message was sent while issue was closed.
Change committed as 170427

Powered by Google App Engine
This is Rietveld 408576698