Call InstanceID::DeleteID to delete InstanceID data when the app or
commit7898ae71bd6a0e9e8ccf47c67014c33514d11282
authorjianli <jianli@chromium.org>
Thu, 4 Jun 2015 19:47:06 +0000 (4 12:47 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 4 Jun 2015 19:48:14 +0000 (4 19:48 +0000)
tree7b297df0087c5ab46185cf59316704708bd3837f
parentf51216b02c653317511403f373b4eda8d0401c0d
Call InstanceID::DeleteID to delete InstanceID data when the app or
extension is uninstalled

We should call InstanceID::DeleteID which contains the logic not to
delete tokens when the ID does not exist, instead of calling directly
into GCMDriver.

BUG=496032
TEST=Manual test by uninstall an extension/app w/ gcm permission
TBR=kalman@chromium.org

Review URL: https://codereview.chromium.org/1153413005

Cr-Commit-Position: refs/heads/master@{#332885}
chrome/browser/extensions/extension_gcm_app_handler.cc
chrome/browser/extensions/extension_gcm_app_handler.h
chrome/browser/extensions/extension_gcm_app_handler_unittest.cc
components/gcm_driver/gcm_client_impl.cc
components/gcm_driver/instance_id/instance_id_driver.cc
components/gcm_driver/instance_id/instance_id_driver.h
components/gcm_driver/instance_id/instance_id_driver_unittest.cc