| 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/stat.h> | 7 #include <sys/stat.h> |
| 8 #include <sys/statvfs.h> | 8 #include <sys/statvfs.h> |
| 9 #include <sys/types.h> | 9 #include <sys/types.h> |
| 10 #include <utime.h> | 10 #include <utime.h> |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 #include "chrome/browser/google_apis/drive_service_interface.h" | 49 #include "chrome/browser/google_apis/drive_service_interface.h" |
| 50 #include "chrome/browser/google_apis/gdata_wapi_parser.h" | 50 #include "chrome/browser/google_apis/gdata_wapi_parser.h" |
| 51 #include "chrome/browser/google_apis/operation_registry.h" | 51 #include "chrome/browser/google_apis/operation_registry.h" |
| 52 #include "chrome/browser/google_apis/time_util.h" | 52 #include "chrome/browser/google_apis/time_util.h" |
| 53 #include "chrome/browser/lifetime/application_lifetime.h" | 53 #include "chrome/browser/lifetime/application_lifetime.h" |
| 54 #include "chrome/browser/profiles/profile.h" | 54 #include "chrome/browser/profiles/profile.h" |
| 55 #include "chrome/browser/ui/browser.h" | 55 #include "chrome/browser/ui/browser.h" |
| 56 #include "chrome/browser/ui/browser_window.h" | 56 #include "chrome/browser/ui/browser_window.h" |
| 57 #include "chrome/browser/ui/views/select_file_dialog_extension.h" | 57 #include "chrome/browser/ui/views/select_file_dialog_extension.h" |
| 58 #include "chrome/browser/ui/webui/extensions/extension_icon_source.h" | 58 #include "chrome/browser/ui/webui/extensions/extension_icon_source.h" |
| 59 #include "chrome/common/extensions/api/icons/icons_handler.h" | |
| 60 #include "chrome/common/extensions/extension.h" | 59 #include "chrome/common/extensions/extension.h" |
| 61 #include "chrome/common/extensions/extension_constants.h" | 60 #include "chrome/common/extensions/extension_constants.h" |
| 62 #include "chrome/common/extensions/extension_icon_set.h" | 61 #include "chrome/common/extensions/extension_icon_set.h" |
| 62 #include "chrome/common/extensions/manifest_handlers/icons_handler.h" |
| 63 #include "chrome/common/pref_names.h" | 63 #include "chrome/common/pref_names.h" |
| 64 #include "chromeos/disks/disk_mount_manager.h" | 64 #include "chromeos/disks/disk_mount_manager.h" |
| 65 #include "content/public/browser/child_process_security_policy.h" | 65 #include "content/public/browser/child_process_security_policy.h" |
| 66 #include "content/public/browser/render_process_host.h" | 66 #include "content/public/browser/render_process_host.h" |
| 67 #include "content/public/browser/render_view_host.h" | 67 #include "content/public/browser/render_view_host.h" |
| 68 #include "content/public/browser/storage_partition.h" | 68 #include "content/public/browser/storage_partition.h" |
| 69 #include "googleurl/src/gurl.h" | 69 #include "googleurl/src/gurl.h" |
| 70 #include "grit/app_locale_settings.h" | 70 #include "grit/app_locale_settings.h" |
| 71 #include "grit/generated_resources.h" | 71 #include "grit/generated_resources.h" |
| 72 #include "grit/platform_locale_settings.h" | 72 #include "grit/platform_locale_settings.h" |
| (...skipping 3261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3334 OpenNewWindowFunction::OpenNewWindowFunction() {} | 3334 OpenNewWindowFunction::OpenNewWindowFunction() {} |
| 3335 | 3335 |
| 3336 OpenNewWindowFunction::~OpenNewWindowFunction() {} | 3336 OpenNewWindowFunction::~OpenNewWindowFunction() {} |
| 3337 | 3337 |
| 3338 bool OpenNewWindowFunction::RunImpl() { | 3338 bool OpenNewWindowFunction::RunImpl() { |
| 3339 std::string url; | 3339 std::string url; |
| 3340 EXTENSION_FUNCTION_VALIDATE(args_->GetString(0, &url)); | 3340 EXTENSION_FUNCTION_VALIDATE(args_->GetString(0, &url)); |
| 3341 file_manager_util::OpenNewWindow(profile_, GURL(url)); | 3341 file_manager_util::OpenNewWindow(profile_, GURL(url)); |
| 3342 return true; | 3342 return true; |
| 3343 } | 3343 } |
| OLD | NEW |