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

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

Issue 881403003: Rename gdata_errorcode.h to drive_api_error_codes.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix typos in BUILD.gn Created 5 years, 10 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"
(...skipping 12 matching lines...) Expand all
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
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 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/drive/change_list_loader.h » ('j') | chrome/browser/drive/drive_api_service.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698