| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/chromeos/extensions/file_manager/private_api_strings.h" | 5 #include "chrome/browser/chromeos/extensions/file_manager/private_api_strings.h" |
| 6 | 6 |
| 7 #include "base/strings/stringprintf.h" | 7 #include "base/strings/stringprintf.h" |
| 8 #include "base/sys_info.h" | 8 #include "base/sys_info.h" |
| 9 #include "chrome/browser/chromeos/file_manager/open_with_browser.h" | 9 #include "chrome/browser/chromeos/file_manager/open_with_browser.h" |
| 10 #include "chromeos/system/statistics_provider.h" | 10 #include "chromeos/system/statistics_provider.h" |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 } // namespace | 55 } // namespace |
| 56 | 56 |
| 57 namespace extensions { | 57 namespace extensions { |
| 58 | 58 |
| 59 FileBrowserPrivateGetStringsFunction::FileBrowserPrivateGetStringsFunction() { | 59 FileBrowserPrivateGetStringsFunction::FileBrowserPrivateGetStringsFunction() { |
| 60 } | 60 } |
| 61 | 61 |
| 62 FileBrowserPrivateGetStringsFunction::~FileBrowserPrivateGetStringsFunction() { | 62 FileBrowserPrivateGetStringsFunction::~FileBrowserPrivateGetStringsFunction() { |
| 63 } | 63 } |
| 64 | 64 |
| 65 bool FileBrowserPrivateGetStringsFunction::RunImpl() { | 65 bool FileBrowserPrivateGetStringsFunction::RunSync() { |
| 66 base::DictionaryValue* dict = new base::DictionaryValue(); | 66 base::DictionaryValue* dict = new base::DictionaryValue(); |
| 67 SetResult(dict); | 67 SetResult(dict); |
| 68 | 68 |
| 69 #define SET_STRING(id, idr) \ | 69 #define SET_STRING(id, idr) \ |
| 70 dict->SetString(id, l10n_util::GetStringUTF16(idr)) | 70 dict->SetString(id, l10n_util::GetStringUTF16(idr)) |
| 71 | 71 |
| 72 SET_STRING("WEB_FONT_FAMILY", IDS_WEB_FONT_FAMILY); | 72 SET_STRING("WEB_FONT_FAMILY", IDS_WEB_FONT_FAMILY); |
| 73 SET_STRING("WEB_FONT_SIZE", IDS_WEB_FONT_SIZE); | 73 SET_STRING("WEB_FONT_SIZE", IDS_WEB_FONT_SIZE); |
| 74 | 74 |
| 75 SET_STRING("ARCHIVE_DIRECTORY_LABEL", | 75 SET_STRING("ARCHIVE_DIRECTORY_LABEL", |
| (...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 526 dict->SetString( | 526 dict->SetString( |
| 527 "GOOGLE_DRIVE_ERROR_HELP_URL", | 527 "GOOGLE_DRIVE_ERROR_HELP_URL", |
| 528 base::StringPrintf(kHelpURLFormat, kGoogleDriveErrorHelpNumber)); | 528 base::StringPrintf(kHelpURLFormat, kGoogleDriveErrorHelpNumber)); |
| 529 dict->SetString( | 529 dict->SetString( |
| 530 "NO_ACTION_FOR_FILE_URL", | 530 "NO_ACTION_FOR_FILE_URL", |
| 531 base::StringPrintf(kHelpURLFormat, kNoActionForFileHelpNumber)); | 531 base::StringPrintf(kHelpURLFormat, kNoActionForFileHelpNumber)); |
| 532 return true; | 532 return true; |
| 533 } | 533 } |
| 534 | 534 |
| 535 } // namespace extensions | 535 } // namespace extensions |
| OLD | NEW |