| 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 "chrome/grit/generated_resources.h" | 10 #include "chrome/grit/generated_resources.h" |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 // Location of the help page about connecting to Google Drive. | 49 // Location of the help page about connecting to Google Drive. |
| 50 const int kGoogleDriveErrorHelpNumber = 2649458; | 50 const int kGoogleDriveErrorHelpNumber = 2649458; |
| 51 | 51 |
| 52 // Location of the help page about no-action-available files. | 52 // Location of the help page about no-action-available files. |
| 53 const int kNoActionForFileHelpNumber = 1700055; | 53 const int kNoActionForFileHelpNumber = 1700055; |
| 54 | 54 |
| 55 } // namespace | 55 } // namespace |
| 56 | 56 |
| 57 namespace extensions { | 57 namespace extensions { |
| 58 | 58 |
| 59 FileBrowserPrivateGetStringsFunction::FileBrowserPrivateGetStringsFunction() { | 59 FileManagerPrivateGetStringsFunction::FileManagerPrivateGetStringsFunction() { |
| 60 } | 60 } |
| 61 | 61 |
| 62 FileBrowserPrivateGetStringsFunction::~FileBrowserPrivateGetStringsFunction() { | 62 FileManagerPrivateGetStringsFunction::~FileManagerPrivateGetStringsFunction() { |
| 63 } | 63 } |
| 64 | 64 |
| 65 bool FileBrowserPrivateGetStringsFunction::RunSync() { | 65 bool FileManagerPrivateGetStringsFunction::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 477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 553 dict->SetString( | 553 dict->SetString( |
| 554 "GOOGLE_DRIVE_ERROR_HELP_URL", | 554 "GOOGLE_DRIVE_ERROR_HELP_URL", |
| 555 base::StringPrintf(kHelpURLFormat, kGoogleDriveErrorHelpNumber)); | 555 base::StringPrintf(kHelpURLFormat, kGoogleDriveErrorHelpNumber)); |
| 556 dict->SetString( | 556 dict->SetString( |
| 557 "NO_ACTION_FOR_FILE_URL", | 557 "NO_ACTION_FOR_FILE_URL", |
| 558 base::StringPrintf(kHelpURLFormat, kNoActionForFileHelpNumber)); | 558 base::StringPrintf(kHelpURLFormat, kNoActionForFileHelpNumber)); |
| 559 return true; | 559 return true; |
| 560 } | 560 } |
| 561 | 561 |
| 562 } // namespace extensions | 562 } // namespace extensions |
| OLD | NEW |