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

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

Issue 8457004: platform_util::OpenItem fixes (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: rebase Created 9 years, 1 month 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/extensions/file_manager_util.h ('k') | chrome/browser/platform_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/file_manager_util.cc
===================================================================
--- chrome/browser/extensions/file_manager_util.cc (revision 109689)
+++ chrome/browser/extensions/file_manager_util.cc (working copy)
@@ -50,7 +50,10 @@
const char kMediaPlayerUrl[] = FILEBROWSER_URL("mediaplayer.html");
const char kMediaPlayerPlaylistUrl[] = FILEBROWSER_URL("playlist.html");
#undef FILEBROWSER_URL
+#undef FILEBROWSER_DOMAIN
+namespace {
+
const char kPdfExtension[] = ".pdf";
// List of file extension we can open in tab.
const char* kBrowserSupportedExtensions[] = {
@@ -236,12 +239,10 @@
std::string url = FileManagerUtil::GetFileBrowserUrl().spec() +
'?' + net::EscapeUrlEncodedData(json_args, false);
return GURL(url);
-
}
// static
-void FileManagerUtil::ShowFullTabUrl(Profile*,
- const FilePath& dir) {
+void FileManagerUtil::ViewFolder(const FilePath& dir) {
Browser* browser = BrowserList::GetLastActive();
if (!browser)
return;
« no previous file with comments | « chrome/browser/extensions/file_manager_util.h ('k') | chrome/browser/platform_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698