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

Unified Diff: chrome/browser/chromeos/extensions/file_manager/file_manager_util.cc

Issue 22301003: file_manager: Remove file_manager::OpenNewWindow() and GetVideoPlayerUrl() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove one more Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chromeos/extensions/file_manager/file_manager_util.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/extensions/file_manager/file_manager_util.cc
diff --git a/chrome/browser/chromeos/extensions/file_manager/file_manager_util.cc b/chrome/browser/chromeos/extensions/file_manager/file_manager_util.cc
index 4579b77f8c5e6a928a8eb818a484a36e65b097e1..8db2c2fc027c5eb102886ee2c6df4a774bd22913 100644
--- a/chrome/browser/chromeos/extensions/file_manager/file_manager_util.cc
+++ b/chrome/browser/chromeos/extensions/file_manager/file_manager_util.cc
@@ -522,11 +522,6 @@ GURL GetMediaPlayerUrl() {
return GetFileManagerUrl("/mediaplayer.html");
}
-GURL GetVideoPlayerUrl(const GURL& source_url) {
- return GURL(GetFileManagerUrl("/video_player.html").spec() +
- std::string("?") + source_url.spec());
-}
-
GURL GetActionChoiceUrl(const base::FilePath& virtual_path,
bool advanced_mode) {
std::string url = GetFileManagerUrl("/action_choice.html").spec();
@@ -688,25 +683,6 @@ void ViewRemovableDrive(const base::FilePath& path) {
OpenFileBrowserImpl(path, "auto-open");
}
-void OpenNewWindow(Profile* profile, const GURL& url) {
- ExtensionService* service = extensions::ExtensionSystem::Get(
- profile ? profile : ProfileManager::GetDefaultProfileOrOffTheRecord())->
- extension_service();
- if (!service)
- return;
-
- const extensions::Extension* extension =
- service->GetExtensionById(kFileBrowserDomain, false);
- if (!extension)
- return;
-
- chrome::AppLaunchParams params(profile, extension,
- extension_misc::LAUNCH_WINDOW,
- NEW_FOREGROUND_TAB);
- params.override_url = url;
- chrome::OpenApplication(params);
-}
-
void OpenActionChoiceDialog(const base::FilePath& path, bool advanced_mode) {
const int kDialogWidth = 394;
// TODO(dgozman): remove 50, which is a title height once popup window
« no previous file with comments | « chrome/browser/chromeos/extensions/file_manager/file_manager_util.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698