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

Issue 13891016: Merge ChromeOS and SyncFS XMPP Notification into one class (Closed)

Created:
7 years, 8 months ago by calvinlo
Modified:
7 years, 8 months ago
Reviewers:
tzik, satorux1, kinaba
CC:
chromium-reviews, tfarina, oshima+watch_chromium.org, stevenjb+watch_chromium.org, nkostylev+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Make DriveSystemService an observer of DriveNotificationManager so that it no longer has to handle registering for Drive XMPP notifications itself. This will also allow both SyncFileSystem and the ChromeOS Filemanager (and possibly more observers) to use XMPP notifications solving the problem from before where the same XMPP Invalidation ID was being registered twice. Also removed polling code from SyncFS it's OKed to remove by both SyncFS and ChromeOS teams. BUG=173339 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=195482 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=195935

Patch Set 1 #

Patch Set 2 : Finished porting XMPP registration #

Patch Set 3 : Fix compile and includes #

Patch Set 4 : Rebase #

Total comments: 7

Patch Set 5 : Merged with patch to remove polling #

Patch Set 6 : Merged with patch to remove polling #

Patch Set 7 : Satoru review #1 #

Patch Set 8 : Removed unused includes #

Total comments: 2

Patch Set 9 : Satoru review #2 #

Patch Set 10 : Fix includes for windows compile #

Total comments: 2

Patch Set 11 : Fix win compile #

Patch Set 12 : Fix for ChromeOS Interactive tests #

Patch Set 13 : Rebase merge fix #

Patch Set 14 : Another rebase #

Patch Set 15 : Remove mixed up files #

Patch Set 16 : #

Patch Set 17 : ChromeOS SigFault fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -216 lines) Patch
M chrome/browser/chromeos/drive/drive_system_service.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 5 chunks +7 lines, -15 lines 0 comments Download
M chrome/browser/chromeos/drive/drive_system_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 9 chunks +15 lines, -60 lines 0 comments Download
M chrome/browser/google_apis/drive_notification_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +4 lines, -9 lines 0 comments Download
M chrome/browser/google_apis/drive_notification_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 5 chunks +14 lines, -34 lines 0 comments Download
M chrome/browser/google_apis/drive_notification_manager_factory.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/google_apis/drive_notification_observer.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/sync_file_system/drive_file_sync_service.h View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +2 lines, -11 lines 0 comments Download
M chrome/browser/sync_file_system/drive_file_sync_service.cc View 1 2 3 4 5 6 7 8 9 10 11 14 chunks +7 lines, -81 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/drive_internals_ui.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +9 lines, -4 lines 0 comments Download

Messages

Total messages: 28 (0 generated)
calvinlo
kinaba, I'm not sure if you worked on DriveSystemService before, but you know if the ...
7 years, 8 months ago (2013-04-17 08:52:42 UTC) #1
kinaba
As chatted offline, yes, +satorux has removed the polling code in https://codereview.chromium.org/14256007/ under the assumption ...
7 years, 8 months ago (2013-04-17 09:11:27 UTC) #2
calvinlo
RE: Polling. I have added satorux to review of patch 13929013 to get his thoughts ...
7 years, 8 months ago (2013-04-17 11:02:12 UTC) #3
tzik
lgtm
7 years, 8 months ago (2013-04-17 12:39:51 UTC) #4
kinaba
On 2013/04/17 12:39:51, tzik wrote: > lgtm c/b/cros/drive change looks good to me but I ...
7 years, 8 months ago (2013-04-19 02:26:47 UTC) #5
satorux1
https://codereview.chromium.org/13891016/diff/10001/chrome/browser/chromeos/drive/drive_system_service.cc File chrome/browser/chromeos/drive/drive_system_service.cc (left): https://codereview.chromium.org/13891016/diff/10001/chrome/browser/chromeos/drive/drive_system_service.cc#oldcode225 chrome/browser/chromeos/drive/drive_system_service.cc:225: const syncer::ObjectIdInvalidationMap& invalidation_map) { Wanted to insert EventLogger logging ...
7 years, 8 months ago (2013-04-19 04:12:13 UTC) #6
calvinlo
I've merged the other patch that removes polling from SyncFS into this patch. After the ...
7 years, 8 months ago (2013-04-19 06:15:09 UTC) #7
satorux1
https://codereview.chromium.org/13891016/diff/26001/chrome/browser/chromeos/drive/drive_system_service.h File chrome/browser/chromeos/drive/drive_system_service.h (right): https://codereview.chromium.org/13891016/diff/26001/chrome/browser/chromeos/drive/drive_system_service.h#newcode93 chrome/browser/chromeos/drive/drive_system_service.h:93: virtual void CheckForUpdates() OVERRIDE; I found it rather unusual ...
7 years, 8 months ago (2013-04-19 07:28:25 UTC) #8
calvinlo
https://codereview.chromium.org/13891016/diff/26001/chrome/browser/chromeos/drive/drive_system_service.h File chrome/browser/chromeos/drive/drive_system_service.h (right): https://codereview.chromium.org/13891016/diff/26001/chrome/browser/chromeos/drive/drive_system_service.h#newcode93 chrome/browser/chromeos/drive/drive_system_service.h:93: virtual void CheckForUpdates() OVERRIDE; Done. Originally I called it ...
7 years, 8 months ago (2013-04-19 07:54:06 UTC) #9
satorux1
LGTM
7 years, 8 months ago (2013-04-19 07:59:22 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/calvinlo@chromium.org/13891016/25010
7 years, 8 months ago (2013-04-19 08:04:35 UTC) #11
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=104639
7 years, 8 months ago (2013-04-19 08:52:11 UTC) #12
kinaba
https://codereview.chromium.org/13891016/diff/25014/chrome/browser/sync_file_system/drive_file_sync_service.h File chrome/browser/sync_file_system/drive_file_sync_service.h (right): https://codereview.chromium.org/13891016/diff/25014/chrome/browser/sync_file_system/drive_file_sync_service.h#newcode14 chrome/browser/sync_file_system/drive_file_sync_service.h:14: #include "base/callback.h" fyi: if you include callback.h, the callback_forward.h ...
7 years, 8 months ago (2013-04-19 10:05:39 UTC) #13
calvinlo
Yup thanks, I sorta figured that out by trial and error. Testing the compile out ...
7 years, 8 months ago (2013-04-19 10:08:55 UTC) #14
calvinlo
https://codereview.chromium.org/13891016/diff/25014/chrome/browser/sync_file_system/drive_file_sync_service.h File chrome/browser/sync_file_system/drive_file_sync_service.h (right): https://codereview.chromium.org/13891016/diff/25014/chrome/browser/sync_file_system/drive_file_sync_service.h#newcode14 chrome/browser/sync_file_system/drive_file_sync_service.h:14: #include "base/callback.h" On 2013/04/19 10:05:40, kinaba wrote: > fyi: ...
7 years, 8 months ago (2013-04-19 10:22:09 UTC) #15
calvinlo
Committed patchset #11 manually as r195482 (presubmit successful).
7 years, 8 months ago (2013-04-22 10:12:37 UTC) #16
kinuko
On 2013/04/22 10:12:37, calvinlo wrote: > Committed patchset #11 manually as r195482 (presubmit successful). interactive_ui_tests ...
7 years, 8 months ago (2013-04-22 11:22:49 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/calvinlo@chromium.org/13891016/11008
7 years, 8 months ago (2013-04-23 03:54:10 UTC) #18
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=138106
7 years, 8 months ago (2013-04-23 05:43:36 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/13891016/45001
7 years, 8 months ago (2013-04-23 08:33:29 UTC) #20
commit-bot: I haz the power
Failed to apply patch for chrome/browser/chromeos/drive/drive_system_service.h: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 8 months ago (2013-04-23 08:33:34 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/13891016/62001
7 years, 8 months ago (2013-04-23 11:30:29 UTC) #22
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 8 months ago (2013-04-23 12:57:05 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/calvinlo@chromium.org/13891016/62001
7 years, 8 months ago (2013-04-23 21:12:05 UTC) #24
commit-bot: I haz the power
Change committed as 195935
7 years, 8 months ago (2013-04-23 23:16:55 UTC) #25
hshi1
On 2013/04/23 23:16:55, I haz the power (commit-bot) wrote: > Change committed as 195935 Looks ...
7 years, 8 months ago (2013-04-24 00:30:44 UTC) #26
satorux1
Whoa. I wasn't aware that the codereview URL was reused. Looks 195482 was reverted: crrev.com/195488 ...
7 years, 8 months ago (2013-04-24 00:47:27 UTC) #27
calvinlo
7 years, 8 months ago (2013-04-24 02:20:59 UTC) #28
Message was sent while issue was closed.
Ooops, sorry! This is my first reland so I didn't know the procedure was
different. Sorry about that, I will know for next time.

Powered by Google App Engine
This is Rietveld 408576698