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

Side by Side Diff: chrome/browser/apps/drive/drive_app_provider.cc

Issue 1190203002: Move (most of) chrome/browser/drive into components/drive/service. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing... Created 5 years, 5 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 unified diff | Download patch
OLDNEW
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"
11 #include "base/location.h" 11 #include "base/location.h"
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/single_thread_task_runner.h" 13 #include "base/single_thread_task_runner.h"
14 #include "base/stl_util.h" 14 #include "base/stl_util.h"
15 #include "base/thread_task_runner_handle.h" 15 #include "base/thread_task_runner_handle.h"
16 #include "chrome/browser/apps/drive/drive_app_converter.h" 16 #include "chrome/browser/apps/drive/drive_app_converter.h"
17 #include "chrome/browser/apps/drive/drive_app_mapping.h" 17 #include "chrome/browser/apps/drive/drive_app_mapping.h"
18 #include "chrome/browser/apps/drive/drive_app_uninstall_sync_service.h" 18 #include "chrome/browser/apps/drive/drive_app_uninstall_sync_service.h"
19 #include "chrome/browser/apps/drive/drive_service_bridge.h" 19 #include "chrome/browser/apps/drive/drive_service_bridge.h"
20 #include "chrome/browser/drive/drive_app_registry.h"
21 #include "chrome/browser/extensions/extension_service.h" 20 #include "chrome/browser/extensions/extension_service.h"
22 #include "chrome/browser/profiles/profile.h" 21 #include "chrome/browser/profiles/profile.h"
23 #include "chrome/common/extensions/manifest_handlers/app_launch_info.h" 22 #include "chrome/common/extensions/manifest_handlers/app_launch_info.h"
23 #include "components/drive/drive_app_registry.h"
24 #include "extensions/browser/extension_registry.h" 24 #include "extensions/browser/extension_registry.h"
25 #include "extensions/browser/extension_registry_factory.h" 25 #include "extensions/browser/extension_registry_factory.h"
26 #include "extensions/browser/extension_system.h" 26 #include "extensions/browser/extension_system.h"
27 #include "extensions/browser/uninstall_reason.h" 27 #include "extensions/browser/uninstall_reason.h"
28 #include "extensions/common/extension.h" 28 #include "extensions/common/extension.h"
29 29
30 using extensions::Extension; 30 using extensions::Extension;
31 using extensions::ExtensionRegistry; 31 using extensions::ExtensionRegistry;
32 32
33 namespace { 33 namespace {
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 service_bridge_->GetAppRegistry()->UninstallApp( 325 service_bridge_->GetAppRegistry()->UninstallApp(
326 drive_app_id, base::Bind(&IgnoreUninstallResult)); 326 drive_app_id, base::Bind(&IgnoreUninstallResult));
327 } else { 327 } else {
328 mapping_->AddUninstalledDriveApp(drive_app_id); 328 mapping_->AddUninstalledDriveApp(drive_app_id);
329 uninstall_sync_service_->TrackUninstalledDriveApp(drive_app_id); 329 uninstall_sync_service_->TrackUninstalledDriveApp(drive_app_id);
330 } 330 }
331 331
332 return; 332 return;
333 } 333 }
334 } 334 }
OLDNEW
« no previous file with comments | « chrome/browser/apps/drive/drive_app_provider.h ('k') | chrome/browser/apps/drive/drive_app_provider_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698