diff options
author | tbarzic@chromium.org <tbarzic@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-24 22:06:40 +0000 |
---|---|---|
committer | tbarzic@chromium.org <tbarzic@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-24 22:06:40 +0000 |
commit | 578c696d2d820567eb0cd938476fedee4a892f56 (patch) | |
tree | e42e02957bffe2f44bd10d4d42c56bc6fb5d1d76 /chrome/browser/extensions/file_manager_util.cc | |
parent | 9813189738594f2b2b4be2924f6ca6642ce87665 (diff) | |
download | chromium_src-578c696d2d820567eb0cd938476fedee4a892f56.zip chromium_src-578c696d2d820567eb0cd938476fedee4a892f56.tar.gz chromium_src-578c696d2d820567eb0cd938476fedee4a892f56.tar.bz2 |
Making BrowserNavigator open file browser singleton tab respecting URLs ref value
BUG=chromium-os:19260, chromium-os:15718
TEST= Manual on Cr48:
* Inserting, then removing and inserting removable device again. After both insertions, filebrowser tab pointing to device contents should be shown.
* Clicking ctrl+M with a file browser tab opened (the tab should not point to the root dir). New file browser tab pointing to the root dir should be opened.
Review URL: http://codereview.chromium.org/7701015
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98127 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/file_manager_util.cc')
-rw-r--r-- | chrome/browser/extensions/file_manager_util.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/extensions/file_manager_util.cc b/chrome/browser/extensions/file_manager_util.cc index f8310f9..706bf04 100644 --- a/chrome/browser/extensions/file_manager_util.cc +++ b/chrome/browser/extensions/file_manager_util.cc @@ -210,10 +210,10 @@ void FileManagerUtil::ShowFullTabUrl(Profile*, } std::string url = chrome::kChromeUIFileManagerURL; - url += '#' + EscapeUrlEncodedData(virtual_path.value(), false); + url += "#/" + EscapeUrlEncodedData(virtual_path.value(), false); UserMetrics::RecordAction(UserMetricsAction("ShowFileBrowserFullTab")); - browser->ShowSingletonTab(GURL(url)); + browser->ShowSingletonTabRespectRef(GURL(url)); } void FileManagerUtil::ViewItem(const FilePath& full_path, bool enqueue) { |