| OLD | NEW |
| 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 <sys/statvfs.h> | 7 #include <sys/statvfs.h> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/base64.h" | 10 #include "base/base64.h" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 #include "chrome/browser/extensions/extension_process_manager.h" | 33 #include "chrome/browser/extensions/extension_process_manager.h" |
| 34 #include "chrome/browser/extensions/extension_service.h" | 34 #include "chrome/browser/extensions/extension_service.h" |
| 35 #include "chrome/browser/extensions/extension_tab_util.h" | 35 #include "chrome/browser/extensions/extension_tab_util.h" |
| 36 #include "chrome/browser/extensions/process_map.h" | 36 #include "chrome/browser/extensions/process_map.h" |
| 37 #include "chrome/browser/google_apis/operation_registry.h" | 37 #include "chrome/browser/google_apis/operation_registry.h" |
| 38 #include "chrome/browser/profiles/profile.h" | 38 #include "chrome/browser/profiles/profile.h" |
| 39 #include "chrome/browser/ui/browser.h" | 39 #include "chrome/browser/ui/browser.h" |
| 40 #include "chrome/browser/ui/browser_window.h" | 40 #include "chrome/browser/ui/browser_window.h" |
| 41 #include "chrome/browser/ui/views/select_file_dialog_extension.h" | 41 #include "chrome/browser/ui/views/select_file_dialog_extension.h" |
| 42 #include "chrome/browser/ui/webui/extensions/extension_icon_source.h" | 42 #include "chrome/browser/ui/webui/extensions/extension_icon_source.h" |
| 43 #include "chrome/common/chrome_version_info.h" | |
| 44 #include "chrome/common/extensions/extension.h" | 43 #include "chrome/common/extensions/extension.h" |
| 45 #include "chrome/common/extensions/extension_constants.h" | 44 #include "chrome/common/extensions/extension_constants.h" |
| 46 #include "chrome/common/extensions/extension_icon_set.h" | 45 #include "chrome/common/extensions/extension_icon_set.h" |
| 47 #include "chrome/common/extensions/file_browser_handler.h" | 46 #include "chrome/common/extensions/file_browser_handler.h" |
| 48 #include "chrome/common/pref_names.h" | 47 #include "chrome/common/pref_names.h" |
| 49 #include "chromeos/disks/disk_mount_manager.h" | 48 #include "chromeos/disks/disk_mount_manager.h" |
| 50 #include "content/public/browser/child_process_security_policy.h" | 49 #include "content/public/browser/child_process_security_policy.h" |
| 51 #include "content/public/browser/render_process_host.h" | 50 #include "content/public/browser/render_process_host.h" |
| 52 #include "content/public/browser/render_view_host.h" | 51 #include "content/public/browser/render_view_host.h" |
| 53 #include "googleurl/src/gurl.h" | 52 #include "googleurl/src/gurl.h" |
| (...skipping 1815 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1869 #endif | 1868 #endif |
| 1870 | 1869 |
| 1871 std::string board; | 1870 std::string board; |
| 1872 const char kMachineInfoBoard[] = "CHROMEOS_RELEASE_BOARD"; | 1871 const char kMachineInfoBoard[] = "CHROMEOS_RELEASE_BOARD"; |
| 1873 chromeos::system::StatisticsProvider* provider = | 1872 chromeos::system::StatisticsProvider* provider = |
| 1874 chromeos::system::StatisticsProvider::GetInstance(); | 1873 chromeos::system::StatisticsProvider::GetInstance(); |
| 1875 if (!provider->GetMachineStatistic(kMachineInfoBoard, &board)) | 1874 if (!provider->GetMachineStatistic(kMachineInfoBoard, &board)) |
| 1876 board = "unknown"; | 1875 board = "unknown"; |
| 1877 dict->SetString(kMachineInfoBoard, board); | 1876 dict->SetString(kMachineInfoBoard, board); |
| 1878 | 1877 |
| 1879 dict->SetString("BROWSER_VERSION_MODIFIER", | |
| 1880 chrome::VersionInfo::GetVersionStringModifier()); | |
| 1881 | |
| 1882 return true; | 1878 return true; |
| 1883 } | 1879 } |
| 1884 | 1880 |
| 1885 GetDriveFilePropertiesFunction::GetDriveFilePropertiesFunction() { | 1881 GetDriveFilePropertiesFunction::GetDriveFilePropertiesFunction() { |
| 1886 } | 1882 } |
| 1887 | 1883 |
| 1888 GetDriveFilePropertiesFunction::~GetDriveFilePropertiesFunction() { | 1884 GetDriveFilePropertiesFunction::~GetDriveFilePropertiesFunction() { |
| 1889 } | 1885 } |
| 1890 | 1886 |
| 1891 void GetDriveFilePropertiesFunction::DoOperation( | 1887 void GetDriveFilePropertiesFunction::DoOperation( |
| (...skipping 705 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2597 gdata::DriveSystemService* system_service = | 2593 gdata::DriveSystemService* system_service = |
| 2598 gdata::DriveSystemServiceFactory::GetForProfile(profile_); | 2594 gdata::DriveSystemServiceFactory::GetForProfile(profile_); |
| 2599 if (!system_service || !system_service->file_system()) | 2595 if (!system_service || !system_service->file_system()) |
| 2600 return false; | 2596 return false; |
| 2601 | 2597 |
| 2602 FilePath directory_path = GetVirtualPathFromURL(GURL(file_url_as_string)); | 2598 FilePath directory_path = GetVirtualPathFromURL(GURL(file_url_as_string)); |
| 2603 system_service->file_system()->RequestDirectoryRefresh(directory_path); | 2599 system_service->file_system()->RequestDirectoryRefresh(directory_path); |
| 2604 | 2600 |
| 2605 return true; | 2601 return true; |
| 2606 } | 2602 } |
| OLD | NEW |