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

Unified Diff: chrome/browser/chromeos/extensions/file_browser_private_api.cc

Issue 9395077: [filebrowser] Introduce View action for supported file types (e.g. pdf). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 9 months 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/app/generated_resources.grd ('k') | chrome/browser/chromeos/extensions/file_manager_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/extensions/file_browser_private_api.cc
===================================================================
--- chrome/browser/chromeos/extensions/file_browser_private_api.cc (revision 125140)
+++ chrome/browser/chromeos/extensions/file_browser_private_api.cc (working copy)
@@ -1781,6 +1781,9 @@
SET_STRING(IDS_FILE_BROWSER, MOUNT_ARCHIVE);
SET_STRING(IDS_FILE_BROWSER, FORMAT_DEVICE);
+ SET_STRING(IDS_FILE_BROWSER, OPEN_ACTION);
+ SET_STRING(IDS_FILE_BROWSER, INSTALL_CRX);
+
SET_STRING(IDS_FILE_BROWSER, GALLERY);
SET_STRING(IDS_FILE_BROWSER, GALLERY_EDIT);
SET_STRING(IDS_FILE_BROWSER, GALLERY_SHARE);
@@ -1912,6 +1915,10 @@
SET_STRING(IDS_FILE_BROWSER, ENQUEUE);
#undef SET_STRING
+ dict->SetString("PDF_VIEW_ENABLED",
+ file_manager_util::ShouldBeOpenedWithPdfPlugin(".pdf") ?
+ "true" : "false");
+
ChromeURLDataManager::DataSource::SetFontAndTextDirection(dict);
dict->SetString("PLAY_MEDIA",
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/chromeos/extensions/file_manager_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698