Removed obsolete parameter from file_manager_util::ViewFile

BUG=
TEST=


Review URL: http://codereview.chromium.org/9969204

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132581 0039d316-1c4b-4281-b951-d872f2087c98
parent 1645c556
...@@ -524,7 +524,7 @@ bool TryOpeningFileBrowser(Profile* profile, const FilePath& path) { ...@@ -524,7 +524,7 @@ bool TryOpeningFileBrowser(Profile* profile, const FilePath& path) {
return false; return false;
} }
void ViewFile(const FilePath& path, bool deprecated_enqueue) { void ViewFile(const FilePath& path) {
Profile* profile = ProfileManager::GetDefaultProfileOrOffTheRecord(); Profile* profile = ProfileManager::GetDefaultProfileOrOffTheRecord();
if (!TryOpeningFileBrowser(profile, path) && if (!TryOpeningFileBrowser(profile, path) &&
!TryViewingFile(profile, path)) { !TryViewingFile(profile, path)) {
......
...@@ -67,8 +67,7 @@ void ViewRemovableDrive(const FilePath& path); ...@@ -67,8 +67,7 @@ void ViewRemovableDrive(const FilePath& path);
void ViewFolder(const FilePath& dir); void ViewFolder(const FilePath& dir);
// Opens file with the default File Browser handler. // Opens file with the default File Browser handler.
// TODO(kaznacheev) remove the deprecated_enqueue parameter. void ViewFile(const FilePath& path);
void ViewFile(const FilePath& path, bool deprecated_enqueue);
// Opens file browser on the folder containing the file, with the file selected. // Opens file browser on the folder containing the file, with the file selected.
void ShowFileInFolder(const FilePath& path); void ShowFileInFolder(const FilePath& path);
......
...@@ -30,7 +30,7 @@ void OpenItemOnFileThread(const FilePath& full_path) { ...@@ -30,7 +30,7 @@ void OpenItemOnFileThread(const FilePath& full_path) {
if (file_util::DirectoryExists(full_path)) if (file_util::DirectoryExists(full_path))
callback = base::Bind(&file_manager_util::ViewFolder, full_path); callback = base::Bind(&file_manager_util::ViewFolder, full_path);
else else
callback = base::Bind(&file_manager_util::ViewFile, full_path, false); callback = base::Bind(&file_manager_util::ViewFile, full_path);
BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, callback); BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, callback);
} }
......
...@@ -245,8 +245,7 @@ void ActiveDownloadsHandler::HandleShowAllFiles(const ListValue* args) { ...@@ -245,8 +245,7 @@ void ActiveDownloadsHandler::HandleShowAllFiles(const ListValue* args) {
} }
void ActiveDownloadsHandler::ViewFile(const ListValue* args) { void ActiveDownloadsHandler::ViewFile(const ListValue* args) {
file_manager_util::ViewFile(FilePath(UTF16ToUTF8(ExtractStringValue(args))), file_manager_util::ViewFile(FilePath(UTF16ToUTF8(ExtractStringValue(args))));
false);
} }
void ActiveDownloadsHandler::ModelChanged(DownloadManager* manager) { void ActiveDownloadsHandler::ModelChanged(DownloadManager* manager) {
......
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