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

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

Issue 10375021: Move Extension into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Take 6 Created 8 years, 7 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 (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
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
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
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/extensions/file_handler_util.cc ('k') | chrome/browser/chromeos/kiosk_mode/kiosk_mode_screensaver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698