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

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

Issue 10391075: convert chromeos file manager to loadTimeData (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync 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 f4645da9a6af18b8c58b0152f7190f14483de7d5..51db64ddb193178e485390c03ff334dc4670fb9b 100644
--- a/chrome/browser/chromeos/extensions/file_browser_private_api.cc
+++ b/chrome/browser/chromeos/extensions/file_browser_private_api.cc
@@ -1522,17 +1522,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