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

Unified Diff: chrome/browser/drive/drive_app_registry.cc

Issue 140533002: drive: Apps.delete returns HTTP_NO_CONTENT on success. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
Index: chrome/browser/drive/drive_app_registry.cc
diff --git a/chrome/browser/drive/drive_app_registry.cc b/chrome/browser/drive/drive_app_registry.cc
index aed8ab14c0abcf553c21523cd3bb317b132f8cbd..903cbd8e75799bbfd185e3d2b7d4725af9976fdb 100644
--- a/chrome/browser/drive/drive_app_registry.cc
+++ b/chrome/browser/drive/drive_app_registry.cc
@@ -195,7 +195,7 @@ void DriveAppRegistry::UninstallApp(const std::string& app_id,
void DriveAppRegistry::OnAppUninstalled(const std::string& app_id,
const UninstallCallback& callback,
google_apis::GDataErrorCode error) {
- if (error == google_apis::HTTP_SUCCESS) {
+ if (error == google_apis::HTTP_NO_CONTENT) {
all_apps_.erase(app_id);
RemoveAppFromSelector(app_id, &mimetype_map_);
RemoveAppFromSelector(app_id, &extension_map_);

Powered by Google App Engine
This is Rietveld 408576698