Index: components/gcm_driver/gcm_account_mapper_unittest.cc |
diff --git a/components/gcm_driver/gcm_account_mapper_unittest.cc b/components/gcm_driver/gcm_account_mapper_unittest.cc |
index 718597937f4756fb3fd50fc363d0ef223cd09057..678f6f6167e6b571f215f6d471979a427efedf24 100644 |
--- a/components/gcm_driver/gcm_account_mapper_unittest.cc |
+++ b/components/gcm_driver/gcm_account_mapper_unittest.cc |
@@ -16,7 +16,6 @@ namespace gcm { |
namespace { |
const char kGCMAccountMapperSenderId[] = "745476177629"; |
-const char kGCMAccountMapperAppId[] = "com.google.android.gms"; |
const char kRegistrationId[] = "reg_id"; |
AccountMapping MakeAccountMapping(const std::string& account_id, |
@@ -272,6 +271,7 @@ GCMAccountMapperTest::~GCMAccountMapperTest() { |
void GCMAccountMapperTest::Restart() { |
if (account_mapper_) |
account_mapper_->ShutdownHandler(); |
+ gcm_driver_.RemoveAppHandler(kGCMAccountMapperAppId); |
account_mapper_.reset(new GCMAccountMapper(&gcm_driver_)); |
scoped_ptr<base::SimpleTestClock> clock(new base::SimpleTestClock); |
clock_ = clock.get(); |