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

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

Issue 10332071: Pass command line arguments onto platform apps which provide the right intent. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Windows tests fixed 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 | 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 #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 453 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 const extensions::Extension* extension = 464 const extensions::Extension* extension =
465 service->GetExtensionById(kFileBrowserDomain, false); 465 service->GetExtensionById(kFileBrowserDomain, false);
466 if (!extension) 466 if (!extension)
467 return; 467 return;
468 468
469 extension_misc::LaunchContainer launch_container = 469 extension_misc::LaunchContainer launch_container =
470 service->extension_prefs()-> 470 service->extension_prefs()->
471 GetLaunchContainer(extension, ExtensionPrefs::LAUNCH_DEFAULT); 471 GetLaunchContainer(extension, ExtensionPrefs::LAUNCH_DEFAULT);
472 472
473 content::RecordAction(UserMetricsAction("ShowFileBrowserFullTab")); 473 content::RecordAction(UserMetricsAction("ShowFileBrowserFullTab"));
474 application_launch::OpenApplication( 474 application_launch::OpenApplication(profile, extension, launch_container,
475 profile, extension, launch_container, GURL(url), NEW_FOREGROUND_TAB); 475 GURL(url), NEW_FOREGROUND_TAB, NULL);
476 } 476 }
477 477
478 void ViewRemovableDrive(const FilePath& path) { 478 void ViewRemovableDrive(const FilePath& path) {
479 OpenFileBrowser(path, REUSE_ANY_FILE_MANAGER, "mountTriggered"); 479 OpenFileBrowser(path, REUSE_ANY_FILE_MANAGER, "mountTriggered");
480 } 480 }
481 481
482 void ShowFileInFolder(const FilePath& path) { 482 void ShowFileInFolder(const FilePath& path) {
483 // This action changes the selection so we do not reuse existing tabs. 483 // This action changes the selection so we do not reuse existing tabs.
484 OpenFileBrowser(path, REUSE_NEVER, "selectOnly"); 484 OpenFileBrowser(path, REUSE_NEVER, "selectOnly");
485 } 485 }
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
724 GDataOperationRegistry::ProgressStatus>::const_iterator iter = 724 GDataOperationRegistry::ProgressStatus>::const_iterator iter =
725 list.begin(); 725 list.begin();
726 iter != list.end(); ++iter) { 726 iter != list.end(); ++iter) {
727 result_list->Append( 727 result_list->Append(
728 ProgessStatusToDictionaryValue(profile, origin_url, *iter)); 728 ProgessStatusToDictionaryValue(profile, origin_url, *iter));
729 } 729 }
730 return result_list.release(); 730 return result_list.release();
731 } 731 }
732 732
733 } // namespace file_manager_util 733 } // namespace file_manager_util
OLDNEW
« no previous file with comments | « chrome/browser/background/background_mode_manager.cc ('k') | chrome/browser/extensions/api/app/app_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698