Commit bd7a30c7 authored by satorux@chromium.org's avatar satorux@chromium.org

file_manager: Remove file_manager::OpenNewWindow() and GetVideoPlayerUrl()

These function are unused. OpenActionChoiceDialog() is also unused
but kept as we may need it in the near future.

BUG=268248
TEST=none
R=mtomasz@chromium.org

Review URL: https://codereview.chromium.org/22301003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@215816 0039d316-1c4b-4281-b951-d872f2087c98
parent 1cd32a6b
......@@ -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
......
......@@ -26,7 +26,6 @@ namespace util {
GURL GetFileBrowserExtensionUrl();
GURL GetFileBrowserUrl();
GURL GetMediaPlayerUrl();
GURL GetVideoPlayerUrl();
// Converts |relative_path| (e.g., "drive/root" or "Downloads") into external
// filesystem URL (e.g., filesystem://id/external/drive/root).
......@@ -69,10 +68,6 @@ string16 GetTitleFromType(ui::SelectFileDialog::Type type);
// |path|. In this case the tab will automatically close on |path| unmount.
void ViewRemovableDrive(const base::FilePath& path);
// Opens a new window of the Files.app on the specified url using the
// provided profile. If |profile| is null, then the default one is used.
void OpenNewWindow(Profile* profile, const GURL& url);
// Opens an action choice dialog for an external drive.
// One of the actions is opening the File Manager. Passes |advanced_mode|
// flag to the dialog. If it is enabled, then auto-choice gets disabled.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment