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 #include "chrome/browser/chromeos/extensions/file_manager_util.h" | 4 #include "chrome/browser/chromeos/extensions/file_manager_util.h" |
5 | 5 |
6 #include "base/bind.h" | 6 #include "base/bind.h" |
7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
8 #include "base/json/json_reader.h" | 8 #include "base/json/json_reader.h" |
9 #include "base/json/json_writer.h" | 9 #include "base/json/json_writer.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
456 FilePath virtual_path; | 456 FilePath virtual_path; |
457 if (!ConvertFileToRelativeFileSystemPath(profile, path, &virtual_path)) | 457 if (!ConvertFileToRelativeFileSystemPath(profile, path, &virtual_path)) |
458 return; | 458 return; |
459 url += "#/" + net::EscapeUrlEncodedData(virtual_path.value(), false); | 459 url += "#/" + net::EscapeUrlEncodedData(virtual_path.value(), false); |
460 } | 460 } |
461 | 461 |
462 ExtensionService* service = profile->GetExtensionService(); | 462 ExtensionService* service = profile->GetExtensionService(); |
463 if (!service) | 463 if (!service) |
464 return; | 464 return; |
465 | 465 |
466 const Extension* extension = | 466 const extensions::Extension* extension = |
467 service->GetExtensionById(kFileBrowserDomain, false); | 467 service->GetExtensionById(kFileBrowserDomain, false); |
468 if (!extension) | 468 if (!extension) |
469 return; | 469 return; |
470 | 470 |
471 extension_misc::LaunchContainer launch_container = | 471 extension_misc::LaunchContainer launch_container = |
472 service->extension_prefs()-> | 472 service->extension_prefs()-> |
473 GetLaunchContainer(extension, ExtensionPrefs::LAUNCH_DEFAULT); | 473 GetLaunchContainer(extension, ExtensionPrefs::LAUNCH_DEFAULT); |
474 | 474 |
475 content::RecordAction(UserMetricsAction("ShowFileBrowserFullTab")); | 475 content::RecordAction(UserMetricsAction("ShowFileBrowserFullTab")); |
476 Browser::OpenApplication( | 476 Browser::OpenApplication( |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
726 GDataOperationRegistry::ProgressStatus>::const_iterator iter = | 726 GDataOperationRegistry::ProgressStatus>::const_iterator iter = |
727 list.begin(); | 727 list.begin(); |
728 iter != list.end(); ++iter) { | 728 iter != list.end(); ++iter) { |
729 result_list->Append( | 729 result_list->Append( |
730 ProgessStatusToDictionaryValue(profile, origin_url, *iter)); | 730 ProgessStatusToDictionaryValue(profile, origin_url, *iter)); |
731 } | 731 } |
732 return result_list.release(); | 732 return result_list.release(); |
733 } | 733 } |
734 | 734 |
735 } // namespace file_manager_util | 735 } // namespace file_manager_util |
OLD | NEW |