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

Unified Diff: chrome/browser/services/gcm/gcm_profile_service.h

Issue 176823009: Show device information in chrome://gcm-internals page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/services/gcm/gcm_profile_service.h
diff --git a/chrome/browser/services/gcm/gcm_profile_service.h b/chrome/browser/services/gcm/gcm_profile_service.h
index 633a6e8c7356953d3f57ef91c964a75b60e4cec7..452f326118ef784b48edb70cf4100a6e7d4451e9 100644
--- a/chrome/browser/services/gcm/gcm_profile_service.h
+++ b/chrome/browser/services/gcm/gcm_profile_service.h
@@ -87,11 +87,17 @@ class GCMProfileService : public BrowserContextKeyedService,
const GCMClient::OutgoingMessage& message,
SendCallback callback);
+ // Returns true if the profile is signed in.
+ bool IsSignedIn();
jianli 2014/02/27 00:49:34 nit: add const modifier
juyik 2014/03/01 00:21:57 Done.
+
// For testing purpose.
void set_testing_delegate(TestingDelegate* testing_delegate) {
testing_delegate_ = testing_delegate;
}
+ // Returns the GCM client instance. Can be NULL. Callee owns the instance.
+ GCMClient* GetGCMClient();
fgorski 2014/02/26 23:38:19 You should not expose the GCMClient that way. Your
jianli 2014/02/27 00:49:34 GCMClient is supposed to be used only in IO thread
juyik 2014/03/01 00:21:57 Done. Switch between UI and IO thread thru GCM pro
+
protected:
// Flag that could be set by the testing code to enable GCM. Otherwise,
// tests from official build will fail.

Powered by Google App Engine
This is Rietveld 408576698