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

Issue 135903005: [GCM] Reland: Introduce GCMClientFactory to create GCMClient for GCMProfileService (Closed)

Created:
6 years, 11 months ago by jianli
Modified:
6 years, 11 months ago
Reviewers:
Nicolas Zea, fgorski
CC:
chromium-reviews
Visibility:
Public.

Description

[GCM] Reland: Introduce GCMClientFactory to create GCMClient for GCMProfileService We used to call GCMClient::Get() to get the single instance. This did not work when we need to pass some initialization data from browser to it. GCMClientFactory is introduced such that GCMClient instance can be created, initialized and used in GCMProfileService::IOWorker. BUG=284553 TEST=existing tests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=245447 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=246198

Patch Set 1 : Patch #

Total comments: 6

Patch Set 2 : Address comments #

Patch Set 3 : Fix CrOS memory failures #

Total comments: 2

Patch Set 4 : Address feedback #

Total comments: 1

Patch Set 5 : Patch to land #

Unified diffs Side-by-side diffs Delta from patch set Stats (+147 lines, -77 lines) Patch
A chrome/browser/services/gcm/gcm_client_factory.h View 1 1 chunk +35 lines, -0 lines 0 comments Download
A chrome/browser/services/gcm/gcm_client_factory.cc View 1 1 chunk +68 lines, -0 lines 0 comments Download
M chrome/browser/services/gcm/gcm_profile_service.cc View 1 2 3 4 11 chunks +34 lines, -27 lines 0 comments Download
M chrome/browser/services/gcm/gcm_profile_service_unittest.cc View 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M google_apis/gcm/engine/user_list_unittest.cc View 1 chunk +0 lines, -1 line 0 comments Download
M google_apis/gcm/gcm_client.h View 1 3 chunks +2 lines, -18 lines 0 comments Download
M google_apis/gcm/gcm_client.cc View 1 2 chunks +2 lines, -28 lines 0 comments Download
M google_apis/gcm/gcm_client_impl.h View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 13 (0 generated)
jianli
6 years, 11 months ago (2014-01-16 21:58:29 UTC) #1
fgorski
lgtm with one comment. https://codereview.chromium.org/135903005/diff/90001/chrome/browser/services/gcm/gcm_profile_service.cc File chrome/browser/services/gcm/gcm_profile_service.cc (right): https://codereview.chromium.org/135903005/diff/90001/chrome/browser/services/gcm/gcm_profile_service.cc#newcode240 chrome/browser/services/gcm/gcm_profile_service.cc:240: gcm_client_ = GCMClientFactory::GetClient(); will it ...
6 years, 11 months ago (2014-01-16 23:18:31 UTC) #2
Nicolas Zea
https://codereview.chromium.org/135903005/diff/90001/chrome/browser/services/gcm/gcm_client_factory.cc File chrome/browser/services/gcm/gcm_client_factory.cc (right): https://codereview.chromium.org/135903005/diff/90001/chrome/browser/services/gcm/gcm_client_factory.cc#newcode35 chrome/browser/services/gcm/gcm_client_factory.cc:35: GCMClientImpl* client = g_gcm_client.Pointer(); The GCM client expects to ...
6 years, 11 months ago (2014-01-16 23:47:36 UTC) #3
jianli
https://codereview.chromium.org/135903005/diff/90001/chrome/browser/services/gcm/gcm_client_factory.cc File chrome/browser/services/gcm/gcm_client_factory.cc (right): https://codereview.chromium.org/135903005/diff/90001/chrome/browser/services/gcm/gcm_client_factory.cc#newcode35 chrome/browser/services/gcm/gcm_client_factory.cc:35: GCMClientImpl* client = g_gcm_client.Pointer(); On 2014/01/16 23:47:36, Nicolas Zea ...
6 years, 11 months ago (2014-01-17 00:43:54 UTC) #4
Nicolas Zea
lgtm
6 years, 11 months ago (2014-01-17 01:09:23 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jianli@chromium.org/135903005/220001
6 years, 11 months ago (2014-01-17 01:13:07 UTC) #6
commit-bot: I haz the power
Change committed as 245447
6 years, 11 months ago (2014-01-17 06:49:47 UTC) #7
fgorski
lgtm
6 years, 11 months ago (2014-01-21 22:51:53 UTC) #8
Nicolas Zea
https://codereview.chromium.org/135903005/diff/550001/chrome/browser/services/gcm/gcm_profile_service.cc File chrome/browser/services/gcm/gcm_profile_service.cc (right): https://codereview.chromium.org/135903005/diff/550001/chrome/browser/services/gcm/gcm_profile_service.cc#newcode515 chrome/browser/services/gcm/gcm_profile_service.cc:515: io_worker_->Initialize(); I think it's cleaner to have the GCMProfileService ...
6 years, 11 months ago (2014-01-21 23:04:44 UTC) #9
jianli
https://codereview.chromium.org/135903005/diff/550001/chrome/browser/services/gcm/gcm_profile_service.cc File chrome/browser/services/gcm/gcm_profile_service.cc (right): https://codereview.chromium.org/135903005/diff/550001/chrome/browser/services/gcm/gcm_profile_service.cc#newcode515 chrome/browser/services/gcm/gcm_profile_service.cc:515: io_worker_->Initialize(); On 2014/01/21 23:04:45, Nicolas Zea wrote: > I ...
6 years, 11 months ago (2014-01-21 23:16:16 UTC) #10
Nicolas Zea
lgtm https://codereview.chromium.org/135903005/diff/660001/chrome/browser/services/gcm/gcm_profile_service.cc File chrome/browser/services/gcm/gcm_profile_service.cc (right): https://codereview.chromium.org/135903005/diff/660001/chrome/browser/services/gcm/gcm_profile_service.cc#newcode503 chrome/browser/services/gcm/gcm_profile_service.cc:503: // This initializes GCMClient and also do the ...
6 years, 11 months ago (2014-01-21 23:30:30 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jianli@chromium.org/135903005/730001
6 years, 11 months ago (2014-01-21 23:35:09 UTC) #12
commit-bot: I haz the power
6 years, 11 months ago (2014-01-22 01:38:11 UTC) #13
Message was sent while issue was closed.
Change committed as 246198

Powered by Google App Engine
This is Rietveld 408576698