diff options
author | dhg@chromium.org <dhg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-11 23:03:36 +0000 |
---|---|---|
committer | dhg@chromium.org <dhg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-11 23:03:36 +0000 |
commit | 180242c1754b60dd66697f46d7766a5bb49ba322 (patch) | |
tree | 8e73098ceaebcfb3f78cee7fec78f5841df508c8 /chrome/browser/platform_util_chromeos.cc | |
parent | d4731385aac4af3de12885fac1f7241f2ea19dd2 (diff) | |
download | chromium_src-180242c1754b60dd66697f46d7766a5bb49ba322.zip chromium_src-180242c1754b60dd66697f46d7766a5bb49ba322.tar.gz chromium_src-180242c1754b60dd66697f46d7766a5bb49ba322.tar.bz2 |
Fixing opening files on chromeos.
BUG=chromium-os:2743
TEST=trying to open a file
Review URL: http://codereview.chromium.org/2040008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46976 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/platform_util_chromeos.cc')
-rw-r--r-- | chrome/browser/platform_util_chromeos.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/platform_util_chromeos.cc b/chrome/browser/platform_util_chromeos.cc index a19d3ac..bc6e33e 100644 --- a/chrome/browser/platform_util_chromeos.cc +++ b/chrome/browser/platform_util_chromeos.cc @@ -51,7 +51,7 @@ void OpenItem(const FilePath& full_path) { ext == ".htm") { std::string path; path = "file://"; - path += full_path.value(); + path.append(full_path.value()); if (!ChromeThread::CurrentlyOn(ChromeThread::UI)) { bool result = ChromeThread::PostTask( ChromeThread::UI, FROM_HERE, @@ -61,8 +61,8 @@ void OpenItem(const FilePath& full_path) { } Browser* browser = BrowserList::GetLastActive(); browser->AddTabWithURL( - GURL(path), GURL(), PageTransition::LINK, - true, -1, false, NULL); + GURL(path), GURL(), PageTransition::LINK, -1, Browser::ADD_SELECTED, + NULL, std::string()); return; } if (ext == ".avi" || |