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

Unified Diff: components/gcm_driver/fake_gcm_client.h

Issue 848503002: [GCM] Remove GCMDriver::Purge and GCMClient::CheckOut (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « no previous file | components/gcm_driver/fake_gcm_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/gcm_driver/fake_gcm_client.h
diff --git a/components/gcm_driver/fake_gcm_client.h b/components/gcm_driver/fake_gcm_client.h
index 17a0c611bb5eebc6ce1102be5836f506b86dbb4a..c0a02d0fdb0242301831664df4155429b637fc1a 100644
--- a/components/gcm_driver/fake_gcm_client.h
+++ b/components/gcm_driver/fake_gcm_client.h
@@ -17,13 +17,6 @@ namespace gcm {
class FakeGCMClient : public GCMClient {
public:
- enum Status {
- UNINITIALIZED,
- STARTED,
- STOPPED,
- CHECKED_OUT
- };
-
enum StartMode {
NO_DELAY_START,
DELAY_START,
@@ -46,7 +39,6 @@ class FakeGCMClient : public GCMClient {
Delegate* delegate) override;
void Start() override;
void Stop() override;
- void CheckOut() override;
void Register(const std::string& app_id,
const std::vector<std::string>& sender_ids) override;
void Unregister(const std::string& app_id) override;
@@ -76,8 +68,6 @@ class FakeGCMClient : public GCMClient {
std::string GetRegistrationIdFromSenderIds(
const std::vector<std::string>& sender_ids) const;
- Status status() const { return status_; }
-
private:
// Called on IO thread.
void DoLoading();
@@ -98,7 +88,7 @@ class FakeGCMClient : public GCMClient {
// Increased at checkout in order to produce a different registration ID
// after checkout and re-checkin.
int sequence_id_;
- Status status_;
+ bool started_;
StartMode start_mode_;
scoped_refptr<base::SequencedTaskRunner> ui_thread_;
scoped_refptr<base::SequencedTaskRunner> io_thread_;
« no previous file with comments | « no previous file | components/gcm_driver/fake_gcm_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698