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 <stddef.h> | 7 #include <stddef.h> |
8 #include <utility> | 8 #include <utility> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/bind_helpers.h" | 12 #include "base/bind_helpers.h" |
13 #include "base/location.h" | 13 #include "base/location.h" |
14 #include "base/logging.h" | 14 #include "base/logging.h" |
15 #include "base/single_thread_task_runner.h" | 15 #include "base/single_thread_task_runner.h" |
16 #include "base/stl_util.h" | 16 #include "base/stl_util.h" |
17 #include "base/thread_task_runner_handle.h" | 17 #include "base/threading/thread_task_runner_handle.h" |
18 #include "chrome/browser/apps/drive/drive_app_converter.h" | 18 #include "chrome/browser/apps/drive/drive_app_converter.h" |
19 #include "chrome/browser/apps/drive/drive_app_mapping.h" | 19 #include "chrome/browser/apps/drive/drive_app_mapping.h" |
20 #include "chrome/browser/apps/drive/drive_app_uninstall_sync_service.h" | 20 #include "chrome/browser/apps/drive/drive_app_uninstall_sync_service.h" |
21 #include "chrome/browser/apps/drive/drive_service_bridge.h" | 21 #include "chrome/browser/apps/drive/drive_service_bridge.h" |
22 #include "chrome/browser/extensions/extension_service.h" | 22 #include "chrome/browser/extensions/extension_service.h" |
23 #include "chrome/browser/profiles/profile.h" | 23 #include "chrome/browser/profiles/profile.h" |
24 #include "chrome/common/extensions/manifest_handlers/app_launch_info.h" | 24 #include "chrome/common/extensions/manifest_handlers/app_launch_info.h" |
25 #include "components/drive/drive_app_registry.h" | 25 #include "components/drive/drive_app_registry.h" |
26 #include "extensions/browser/extension_registry.h" | 26 #include "extensions/browser/extension_registry.h" |
27 #include "extensions/browser/extension_registry_factory.h" | 27 #include "extensions/browser/extension_registry_factory.h" |
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
327 service_bridge_->GetAppRegistry()->UninstallApp( | 327 service_bridge_->GetAppRegistry()->UninstallApp( |
328 drive_app_id, base::Bind(&IgnoreUninstallResult)); | 328 drive_app_id, base::Bind(&IgnoreUninstallResult)); |
329 } else { | 329 } else { |
330 mapping_->AddUninstalledDriveApp(drive_app_id); | 330 mapping_->AddUninstalledDriveApp(drive_app_id); |
331 uninstall_sync_service_->TrackUninstalledDriveApp(drive_app_id); | 331 uninstall_sync_service_->TrackUninstalledDriveApp(drive_app_id); |
332 } | 332 } |
333 | 333 |
334 return; | 334 return; |
335 } | 335 } |
336 } | 336 } |
OLD | NEW |