| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/extensions/extension_file_browser_private_api.h" | 5 #include "chrome/browser/extensions/extension_file_browser_private_api.h" |
| 6 | 6 |
| 7 #include "base/base64.h" | 7 #include "base/base64.h" |
| 8 #include "base/bind.h" | 8 #include "base/bind.h" |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/json/json_writer.h" | 10 #include "base/json/json_writer.h" |
| (...skipping 1658 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1669 SET_STRING(IDS_FILE_BROWSER, VIDEO_FILE_TYPE); | 1669 SET_STRING(IDS_FILE_BROWSER, VIDEO_FILE_TYPE); |
| 1670 SET_STRING(IDS_FILE_BROWSER, AUDIO_FILE_TYPE); | 1670 SET_STRING(IDS_FILE_BROWSER, AUDIO_FILE_TYPE); |
| 1671 SET_STRING(IDS_FILE_BROWSER, HTML_DOCUMENT_FILE_TYPE); | 1671 SET_STRING(IDS_FILE_BROWSER, HTML_DOCUMENT_FILE_TYPE); |
| 1672 SET_STRING(IDS_FILE_BROWSER, ZIP_ARCHIVE_FILE_TYPE); | 1672 SET_STRING(IDS_FILE_BROWSER, ZIP_ARCHIVE_FILE_TYPE); |
| 1673 SET_STRING(IDS_FILE_BROWSER, PLAIN_TEXT_FILE_TYPE); | 1673 SET_STRING(IDS_FILE_BROWSER, PLAIN_TEXT_FILE_TYPE); |
| 1674 SET_STRING(IDS_FILE_BROWSER, PDF_DOCUMENT_FILE_TYPE); | 1674 SET_STRING(IDS_FILE_BROWSER, PDF_DOCUMENT_FILE_TYPE); |
| 1675 | 1675 |
| 1676 SET_STRING(IDS_FILE_BROWSER, ENQUEUE); | 1676 SET_STRING(IDS_FILE_BROWSER, ENQUEUE); |
| 1677 #undef SET_STRING | 1677 #undef SET_STRING |
| 1678 | 1678 |
| 1679 ChromeURLDataManager::DataSource::SetFontAndTextDirection(dict); |
| 1680 |
| 1679 // TODO(serya): Create a new string in .grd file for this one in M13. | 1681 // TODO(serya): Create a new string in .grd file for this one in M13. |
| 1680 dict->SetString("PREVIEW_IMAGE", | 1682 dict->SetString("PREVIEW_IMAGE", |
| 1681 l10n_util::GetStringUTF16(IDS_CERT_MANAGER_VIEW_CERT_BUTTON)); | 1683 l10n_util::GetStringUTF16(IDS_CERT_MANAGER_VIEW_CERT_BUTTON)); |
| 1682 dict->SetString("PLAY_MEDIA", | 1684 dict->SetString("PLAY_MEDIA", |
| 1683 l10n_util::GetStringUTF16(IDS_CONTENT_CONTEXT_PLAY)); | 1685 l10n_util::GetStringUTF16(IDS_CONTENT_CONTEXT_PLAY)); |
| 1684 #if defined(OS_CHROMEOS) | 1686 #if defined(OS_CHROMEOS) |
| 1685 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kEnablePhotoEditor)) | 1687 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kEnablePhotoEditor)) |
| 1686 dict->SetString("ENABLE_PHOTO_EDITOR", "true"); | 1688 dict->SetString("ENABLE_PHOTO_EDITOR", "true"); |
| 1687 #endif | 1689 #endif |
| 1688 | 1690 |
| 1689 return true; | 1691 return true; |
| 1690 } | 1692 } |
| OLD | NEW |