OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/apps/drive/drive_app_provider.h" | 5 #include "chrome/browser/apps/drive/drive_app_provider.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 #include "extensions/browser/extension_registry_factory.h" | 23 #include "extensions/browser/extension_registry_factory.h" |
24 #include "extensions/browser/extension_system.h" | 24 #include "extensions/browser/extension_system.h" |
25 #include "extensions/browser/uninstall_reason.h" | 25 #include "extensions/browser/uninstall_reason.h" |
26 #include "extensions/common/extension.h" | 26 #include "extensions/common/extension.h" |
27 | 27 |
28 using extensions::Extension; | 28 using extensions::Extension; |
29 using extensions::ExtensionRegistry; | 29 using extensions::ExtensionRegistry; |
30 | 30 |
31 namespace { | 31 namespace { |
32 | 32 |
33 void IgnoreUninstallResult(google_apis::GDataErrorCode) { | 33 void IgnoreUninstallResult(google_apis::DriveApiErrorCode) { |
34 } | 34 } |
35 | 35 |
36 } // namespace | 36 } // namespace |
37 | 37 |
38 DriveAppProvider::DriveAppProvider( | 38 DriveAppProvider::DriveAppProvider( |
39 Profile* profile, | 39 Profile* profile, |
40 DriveAppUninstallSyncService* uninstall_sync_service) | 40 DriveAppUninstallSyncService* uninstall_sync_service) |
41 : profile_(profile), | 41 : profile_(profile), |
42 uninstall_sync_service_(uninstall_sync_service), | 42 uninstall_sync_service_(uninstall_sync_service), |
43 service_bridge_(DriveServiceBridge::Create(profile).Pass()), | 43 service_bridge_(DriveServiceBridge::Create(profile).Pass()), |
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
321 service_bridge_->GetAppRegistry()->UninstallApp( | 321 service_bridge_->GetAppRegistry()->UninstallApp( |
322 drive_app_id, base::Bind(&IgnoreUninstallResult)); | 322 drive_app_id, base::Bind(&IgnoreUninstallResult)); |
323 } else { | 323 } else { |
324 mapping_->AddUninstalledDriveApp(drive_app_id); | 324 mapping_->AddUninstalledDriveApp(drive_app_id); |
325 uninstall_sync_service_->TrackUninstalledDriveApp(drive_app_id); | 325 uninstall_sync_service_->TrackUninstalledDriveApp(drive_app_id); |
326 } | 326 } |
327 | 327 |
328 return; | 328 return; |
329 } | 329 } |
330 } | 330 } |
OLD | NEW |