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

Issue 11232048: Adding XMPP ping functionality to CLoudPrint. XMPP ping and timeout is controlled thorugh Service S… (Closed)

Created:
8 years, 2 months ago by gene
Modified:
8 years, 1 month ago
CC:
chromium-reviews
Visibility:
Public.

Description

Adding XMPP ping functionality to CloudPrint. XMPP ping and timeout is controlled thorugh Service State file. BUG=157735 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=164385

Patch Set 1 #

Total comments: 29

Patch Set 2 : comments addressed #

Patch Set 3 : moved some variabled to connector settings #

Total comments: 2

Patch Set 4 : added unittest #

Patch Set 5 : fixed value #

Total comments: 3

Patch Set 6 : wire ping through xmpp client #

Patch Set 7 : fixed unittests #

Patch Set 8 : nits #

Total comments: 3

Patch Set 9 : added missing files #

Total comments: 10

Patch Set 10 : moved ping listener to ping task #

Total comments: 18

Patch Set 11 : comments addressed #

Total comments: 18

Patch Set 12 : comments addressed, unittests added #

Total comments: 14

Patch Set 13 : comments addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+458 lines, -9 lines) Patch
M chrome/common/pref_names.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/service/cloud_print/cloud_print_consts.h View 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/service/cloud_print/cloud_print_proxy_backend.cc View 1 2 3 4 5 6 7 8 9 10 11 11 chunks +76 lines, -1 line 0 comments Download
M chrome/service/cloud_print/connector_settings.h View 1 2 2 chunks +20 lines, -0 lines 0 comments Download
M chrome/service/cloud_print/connector_settings.cc View 1 2 3 chunks +20 lines, -1 line 0 comments Download
M chrome/service/cloud_print/connector_settings_unittest.cc View 1 2 3 4 5 chunks +25 lines, -0 lines 0 comments Download
M chrome/service/service_process_prefs.h View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/service/service_process_prefs.cc View 1 1 chunk +15 lines, -0 lines 0 comments Download
M jingle/jingle.gyp View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -0 lines 0 comments Download
M jingle/notifier/listener/fake_push_client.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +3 lines, -0 lines 0 comments Download
M jingle/notifier/listener/fake_push_client.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +9 lines, -1 line 0 comments Download
M jingle/notifier/listener/non_blocking_push_client.h View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M jingle/notifier/listener/non_blocking_push_client.cc View 1 2 3 4 5 5 chunks +28 lines, -0 lines 0 comments Download
M jingle/notifier/listener/non_blocking_push_client_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +8 lines, -0 lines 0 comments Download
M jingle/notifier/listener/push_client.h View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download
M jingle/notifier/listener/push_client_observer.h View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M jingle/notifier/listener/push_client_observer.cc View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M jingle/notifier/listener/push_notifications_listen_task.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M jingle/notifier/listener/push_notifications_listen_task.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -0 lines 0 comments Download
M jingle/notifier/listener/push_notifications_send_update_task.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +4 lines, -4 lines 0 comments Download
A jingle/notifier/listener/send_ping_task.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +54 lines, -0 lines 0 comments Download
A jingle/notifier/listener/send_ping_task.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +80 lines, -0 lines 0 comments Download
A jingle/notifier/listener/send_ping_task_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +41 lines, -0 lines 0 comments Download
M jingle/notifier/listener/xmpp_push_client.h View 1 2 3 4 5 6 7 8 9 4 chunks +7 lines, -1 line 0 comments Download
M jingle/notifier/listener/xmpp_push_client.cc View 1 2 3 4 5 6 7 8 9 3 chunks +17 lines, -0 lines 0 comments Download
M jingle/notifier/listener/xmpp_push_client_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +12 lines, -0 lines 0 comments Download

Messages

Total messages: 32 (0 generated)
gene
8 years, 2 months ago (2012-10-22 19:43:03 UTC) #1
Vitaly Buka (NO REVIEWS)
https://codereview.chromium.org/11232048/diff/1/chrome/service/cloud_print/cloud_print_proxy_backend.cc File chrome/service/cloud_print/cloud_print_proxy_backend.cc (right): https://codereview.chromium.org/11232048/diff/1/chrome/service/cloud_print/cloud_print_proxy_backend.cc#newcode154 chrome/service/cloud_print/cloud_print_proxy_backend.cc:154: // Indicates timeout between XMPP pings. ) if XMPP ...
8 years, 2 months ago (2012-10-22 20:52:53 UTC) #2
Vitaly Buka (NO REVIEWS)
https://codereview.chromium.org/11232048/diff/1/chrome/service/cloud_print/cloud_print_consts.h File chrome/service/cloud_print/cloud_print_consts.h (right): https://codereview.chromium.org/11232048/diff/1/chrome/service/cloud_print/cloud_print_consts.h#newcode70 chrome/service/cloud_print/cloud_print_consts.h:70: const int kMinimumXmppPingTimeoutSecs = 2*60; // 2 minutes in ...
8 years, 2 months ago (2012-10-22 20:59:09 UTC) #3
gene
https://codereview.chromium.org/11232048/diff/1/chrome/service/cloud_print/cloud_print_consts.h File chrome/service/cloud_print/cloud_print_consts.h (right): https://codereview.chromium.org/11232048/diff/1/chrome/service/cloud_print/cloud_print_consts.h#newcode70 chrome/service/cloud_print/cloud_print_consts.h:70: const int kMinimumXmppPingTimeoutSecs = 2*60; // 2 minutes in ...
8 years, 2 months ago (2012-10-22 21:44:12 UTC) #4
gene
make changes as we discussed, please take a look
8 years, 2 months ago (2012-10-22 22:08:37 UTC) #5
gene
8 years, 2 months ago (2012-10-22 22:13:31 UTC) #6
Vitaly Buka (NO REVIEWS)
lgtm https://codereview.chromium.org/11232048/diff/13001/chrome/service/cloud_print/connector_settings_unittest.cc File chrome/service/cloud_print/connector_settings_unittest.cc (right): https://codereview.chromium.org/11232048/diff/13001/chrome/service/cloud_print/connector_settings_unittest.cc#newcode126 chrome/service/cloud_print/connector_settings_unittest.cc:126: EXPECT_TRUE(settings2.IsPrinterBlacklisted("prn1")); Would be nice to have setter test ...
8 years, 2 months ago (2012-10-22 22:34:05 UTC) #7
gene
https://codereview.chromium.org/11232048/diff/13001/chrome/service/cloud_print/connector_settings_unittest.cc File chrome/service/cloud_print/connector_settings_unittest.cc (right): https://codereview.chromium.org/11232048/diff/13001/chrome/service/cloud_print/connector_settings_unittest.cc#newcode126 chrome/service/cloud_print/connector_settings_unittest.cc:126: EXPECT_TRUE(settings2.IsPrinterBlacklisted("prn1")); On 2012/10/22 22:34:05, Vitaly Buka wrote: > Would ...
8 years, 2 months ago (2012-10-22 23:36:22 UTC) #8
akalin
lgtm This is implementing http://xmpp.org/extensions/xep-0199.html right? If so, I think it can be done more ...
8 years, 2 months ago (2012-10-23 00:37:21 UTC) #9
akalin
lgtm This is implementing http://xmpp.org/extensions/xep-0199.html right? If so, I think it can be done more ...
8 years, 2 months ago (2012-10-23 00:37:25 UTC) #10
akalin
ugh, didn't mean to lgtm. :/
8 years, 2 months ago (2012-10-23 00:37:37 UTC) #11
gene
Thanks for suggestions. I initially wanted to do exactly what you described, but during implementation ...
8 years, 2 months ago (2012-10-23 17:22:45 UTC) #12
gene
Done. Could you please take a look?
8 years, 2 months ago (2012-10-23 19:29:09 UTC) #13
akalin
http://codereview.chromium.org/11232048/diff/14003/jingle/jingle.gyp File jingle/jingle.gyp (right): http://codereview.chromium.org/11232048/diff/14003/jingle/jingle.gyp#newcode95 jingle/jingle.gyp:95: 'notifier/listener/push_notifications_send_ping_task.h', i don't see these files in this CL? ...
8 years, 2 months ago (2012-10-24 20:13:48 UTC) #14
gene
Comments addressed, added missing files, renamed ping task. Please take a look.
8 years, 2 months ago (2012-10-24 21:39:13 UTC) #15
akalin
few more https://codereview.chromium.org/11232048/diff/21001/jingle/notifier/listener/fake_push_client.cc File jingle/notifier/listener/fake_push_client.cc (right): https://codereview.chromium.org/11232048/diff/21001/jingle/notifier/listener/fake_push_client.cc#newcode38 jingle/notifier/listener/fake_push_client.cc:38: void FakePushClient::SendPing() { add the comment "// ...
8 years, 2 months ago (2012-10-24 21:45:34 UTC) #16
gene
Done. Please take a look. https://codereview.chromium.org/11232048/diff/21001/jingle/notifier/listener/fake_push_client.cc File jingle/notifier/listener/fake_push_client.cc (right): https://codereview.chromium.org/11232048/diff/21001/jingle/notifier/listener/fake_push_client.cc#newcode38 jingle/notifier/listener/fake_push_client.cc:38: void FakePushClient::SendPing() { On ...
8 years, 2 months ago (2012-10-24 22:30:09 UTC) #17
akalin
few more https://codereview.chromium.org/11232048/diff/22025/jingle/notifier/listener/send_ping_task.cc File jingle/notifier/listener/send_ping_task.cc (right): https://codereview.chromium.org/11232048/diff/22025/jingle/notifier/listener/send_ping_task.cc#newcode22 jingle/notifier/listener/send_ping_task.cc:22: : XmppTask(parent, buzz::XmppEngine::HL_TYPE), delegate_(delegate) { this should ...
8 years, 2 months ago (2012-10-24 22:43:20 UTC) #18
gene
Code comments addressed. Please take a look. I'll add new unittest in the meantime https://codereview.chromium.org/11232048/diff/22025/jingle/notifier/listener/send_ping_task.cc ...
8 years, 2 months ago (2012-10-24 23:49:03 UTC) #19
gene
https://codereview.chromium.org/11232048/diff/22025/jingle/notifier/listener/send_ping_task_unittest.cc File jingle/notifier/listener/send_ping_task_unittest.cc (right): https://codereview.chromium.org/11232048/diff/22025/jingle/notifier/listener/send_ping_task_unittest.cc#newcode39 jingle/notifier/listener/send_ping_task_unittest.cc:39: } It looks like a trivial code and writing ...
8 years, 2 months ago (2012-10-25 00:04:26 UTC) #20
akalin
Fix "CLoudPrint" -> "CloudPrint" in CL description Is there a particular problem this fixes? Can ...
8 years, 2 months ago (2012-10-25 00:10:13 UTC) #21
gene
Done. Please take a look. https://codereview.chromium.org/11232048/diff/21002/chrome/service/cloud_print/cloud_print_proxy_backend.cc File chrome/service/cloud_print/cloud_print_proxy_backend.cc (right): https://codereview.chromium.org/11232048/diff/21002/chrome/service/cloud_print/cloud_print_proxy_backend.cc#newcode257 chrome/service/cloud_print/cloud_print_proxy_backend.cc:257: pending_xmpp_pings_(kDefaultXmppPingTimeoutSecs) { Good catch! ...
8 years, 2 months ago (2012-10-25 00:43:26 UTC) #22
akalin
few more nits, just waiting on the remaining tests https://codereview.chromium.org/11232048/diff/22026/chrome/service/cloud_print/cloud_print_proxy_backend.cc File chrome/service/cloud_print/cloud_print_proxy_backend.cc (right): https://codereview.chromium.org/11232048/diff/22026/chrome/service/cloud_print/cloud_print_proxy_backend.cc#newcode576 chrome/service/cloud_print/cloud_print_proxy_backend.cc:576: ...
8 years, 2 months ago (2012-10-25 00:51:10 UTC) #23
gene
Please take a look. I incline to skip unittest for SendPingTask ProcessResponse and/or HandleStanza. It ...
8 years, 2 months ago (2012-10-25 01:06:22 UTC) #24
akalin
ok, lgtm
8 years, 1 month ago (2012-10-25 16:14:34 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gene@chromium.org/11232048/25003
8 years, 1 month ago (2012-10-25 16:49:36 UTC) #26
commit-bot: I haz the power
Presubmit check for 11232048-25003 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 1 month ago (2012-10-25 16:49:58 UTC) #27
gene
+sky@ for chrome/OWNERS
8 years, 1 month ago (2012-10-25 18:15:29 UTC) #28
sky
chrome/common LGTM
8 years, 1 month ago (2012-10-25 18:16:15 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gene@chromium.org/11232048/25003
8 years, 1 month ago (2012-10-25 18:18:10 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gene@chromium.org/11232048/25003
8 years, 1 month ago (2012-10-26 17:55:07 UTC) #31
commit-bot: I haz the power
8 years, 1 month ago (2012-10-26 19:59:42 UTC) #32
Change committed as 164385

Powered by Google App Engine
This is Rietveld 408576698