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

Side by Side Diff: chrome/browser/chromeos/extensions/file_browser_private_api.cc

Issue 10829375: Cleanup: separate WAPI and Drive API code in gdata_documents_service. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix for comments Created 8 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/chromeos/extensions/file_browser_private_api.h" 5 #include "chrome/browser/chromeos/extensions/file_browser_private_api.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/base64.h" 9 #include "base/base64.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/memory/scoped_vector.h" 12 #include "base/memory/scoped_vector.h"
13 #include "base/memory/singleton.h" 13 #include "base/memory/singleton.h"
14 #include "base/string_split.h" 14 #include "base/string_split.h"
15 #include "base/stringprintf.h" 15 #include "base/stringprintf.h"
16 #include "base/time.h" 16 #include "base/time.h"
17 #include "base/values.h" 17 #include "base/values.h"
18 #include "chrome/browser/chromeos/cros/cros_library.h" 18 #include "chrome/browser/chromeos/cros/cros_library.h"
19 #include "chrome/browser/chromeos/cros/network_library.h" 19 #include "chrome/browser/chromeos/cros/network_library.h"
20 #include "chrome/browser/chromeos/disks/disk_mount_manager.h" 20 #include "chrome/browser/chromeos/disks/disk_mount_manager.h"
21 #include "chrome/browser/chromeos/extensions/file_handler_util.h" 21 #include "chrome/browser/chromeos/extensions/file_handler_util.h"
22 #include "chrome/browser/chromeos/extensions/file_manager_util.h" 22 #include "chrome/browser/chromeos/extensions/file_manager_util.h"
23 #include "chrome/browser/chromeos/gdata/documents_service_interface.h"
23 #include "chrome/browser/chromeos/gdata/drive_webapps_registry.h" 24 #include "chrome/browser/chromeos/gdata/drive_webapps_registry.h"
24 #include "chrome/browser/chromeos/gdata/gdata.pb.h" 25 #include "chrome/browser/chromeos/gdata/gdata.pb.h"
25 #include "chrome/browser/chromeos/gdata/gdata_documents_service.h"
26 #include "chrome/browser/chromeos/gdata/gdata_operation_registry.h" 26 #include "chrome/browser/chromeos/gdata/gdata_operation_registry.h"
27 #include "chrome/browser/chromeos/gdata/gdata_system_service.h" 27 #include "chrome/browser/chromeos/gdata/gdata_system_service.h"
28 #include "chrome/browser/chromeos/gdata/gdata_util.h" 28 #include "chrome/browser/chromeos/gdata/gdata_util.h"
29 #include "chrome/browser/chromeos/gdata/gdata_wapi_parser.h" 29 #include "chrome/browser/chromeos/gdata/gdata_wapi_parser.h"
30 #include "chrome/browser/chromeos/system/statistics_provider.h" 30 #include "chrome/browser/chromeos/system/statistics_provider.h"
31 #include "chrome/browser/extensions/extension_function_dispatcher.h" 31 #include "chrome/browser/extensions/extension_function_dispatcher.h"
32 #include "chrome/browser/extensions/extension_process_manager.h" 32 #include "chrome/browser/extensions/extension_process_manager.h"
33 #include "chrome/browser/extensions/extension_service.h" 33 #include "chrome/browser/extensions/extension_service.h"
34 #include "chrome/browser/extensions/extension_tab_util.h" 34 #include "chrome/browser/extensions/extension_tab_util.h"
35 #include "chrome/browser/extensions/process_map.h" 35 #include "chrome/browser/extensions/process_map.h"
(...skipping 2396 matching lines...) Expand 10 before | Expand all | Expand 10 after
2432 gdata::GDataSystemService* system_service = 2432 gdata::GDataSystemService* system_service =
2433 gdata::GDataSystemServiceFactory::GetForProfile(profile_); 2433 gdata::GDataSystemServiceFactory::GetForProfile(profile_);
2434 if (!system_service || !system_service->file_system()) 2434 if (!system_service || !system_service->file_system())
2435 return false; 2435 return false;
2436 2436
2437 FilePath directory_path = GetVirtualPathFromURL(GURL(file_url_as_string)); 2437 FilePath directory_path = GetVirtualPathFromURL(GURL(file_url_as_string));
2438 system_service->file_system()->RequestDirectoryRefresh(directory_path); 2438 system_service->file_system()->RequestDirectoryRefresh(directory_path);
2439 2439
2440 return true; 2440 return true;
2441 } 2441 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698