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

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

Issue 10413011: redo r137692 and r137791 which were speculatively reverted (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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 | « no previous file | chrome/browser/resources/file_manager/js/file_manager.js » ('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
diff --git a/chrome/browser/chromeos/extensions/file_browser_private_api.cc b/chrome/browser/chromeos/extensions/file_browser_private_api.cc
index c4d13e1aa5460416c694695495da8be305174aae..825bc6908abb0e1b20fca5bd0c561e0fdcd7aa66 100644
--- a/chrome/browser/chromeos/extensions/file_browser_private_api.cc
+++ b/chrome/browser/chromeos/extensions/file_browser_private_api.cc
@@ -1523,17 +1523,17 @@ bool FileDialogStringsFunction::RunImpl() {
SET_STRING(IDS_FILE_BROWSER, THUMBNAIL_VIEW_TOOLTIP);
#undef SET_STRING
- dict->SetString("PDF_VIEW_ENABLED",
- file_manager_util::ShouldBeOpenedWithPdfPlugin(profile(), ".pdf") ?
- "true" : "false");
+ dict->SetBoolean("PDF_VIEW_ENABLED",
+ file_manager_util::ShouldBeOpenedWithPdfPlugin(profile(), ".pdf"));
ChromeURLDataManager::DataSource::SetFontAndTextDirection(dict);
- if (gdata::util::IsGDataAvailable(profile()))
- dict->SetString("ENABLE_GDATA", "1");
+ dict->SetBoolean("ENABLE_GDATA", gdata::util::IsGDataAvailable(profile()));
#if defined(USE_ASH)
- dict->SetString("ASH", "1");
+ dict->SetBoolean("ASH", true);
+#else
+ dict->SetBoolean("ASH", false);
#endif
return true;
« no previous file with comments | « no previous file | chrome/browser/resources/file_manager/js/file_manager.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698