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

Unified Diff: chrome/browser/services/gcm/instance_id/instance_id_profile_service.h

Issue 1128123003: Implement InstanceID API functions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test Created 5 years, 7 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/instance_id/instance_id_profile_service.h
diff --git a/chrome/browser/services/gcm/instance_id/instance_id_profile_service.h b/chrome/browser/services/gcm/instance_id/instance_id_profile_service.h
index a2faeacf7a7330c20a602bef3995633c3075b955..c243378770b6eae9911e076834ee9288d5f1613e 100644
--- a/chrome/browser/services/gcm/instance_id/instance_id_profile_service.h
+++ b/chrome/browser/services/gcm/instance_id/instance_id_profile_service.h
@@ -18,9 +18,14 @@ class InstanceIDDriver;
// Providing Instance ID support, via InstanceIDDriver, to a profile.
class InstanceIDProfileService : public KeyedService {
public:
+ // Returns whether InstanceID is enabled for |profile|.
+ static bool IsInstanceIDEnabled(Profile* profile);
+
explicit InstanceIDProfileService(Profile* profile);
~InstanceIDProfileService() override;
+ InstanceIDDriver* driver() const { return driver_.get(); }
+
private:
scoped_ptr<InstanceIDDriver> driver_;

Powered by Google App Engine
This is Rietveld 408576698