| 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 "chrome/browser/chromeos/extensions/file_manager/open_with_browser.h" | 7 #include "chrome/browser/chromeos/extensions/file_manager/open_with_browser.h" |
| 8 #include "chrome/browser/chromeos/system/statistics_provider.h" | 8 #include "chrome/browser/chromeos/system/statistics_provider.h" |
| 9 #include "grit/app_locale_settings.h" | 9 #include "grit/app_locale_settings.h" |
| 10 #include "grit/generated_resources.h" | 10 #include "grit/generated_resources.h" |
| 11 #include "ui/base/l10n/l10n_util.h" | 11 #include "ui/base/l10n/l10n_util.h" |
| 12 #include "ui/webui/web_ui_util.h" | 12 #include "ui/webui/web_ui_util.h" |
| 13 | 13 |
| 14 namespace extensions { | 14 namespace extensions { |
| 15 | 15 |
| 16 GetStringsFunction::GetStringsFunction() { | 16 FileBrowserPrivateGetStringsFunction::FileBrowserPrivateGetStringsFunction() { |
| 17 } | 17 } |
| 18 | 18 |
| 19 GetStringsFunction::~GetStringsFunction() { | 19 FileBrowserPrivateGetStringsFunction::~FileBrowserPrivateGetStringsFunction() { |
| 20 } | 20 } |
| 21 | 21 |
| 22 bool GetStringsFunction::RunImpl() { | 22 bool FileBrowserPrivateGetStringsFunction::RunImpl() { |
| 23 DictionaryValue* dict = new DictionaryValue(); | 23 DictionaryValue* dict = new DictionaryValue(); |
| 24 SetResult(dict); | 24 SetResult(dict); |
| 25 | 25 |
| 26 #define SET_STRING(id, idr) \ | 26 #define SET_STRING(id, idr) \ |
| 27 dict->SetString(id, l10n_util::GetStringUTF16(idr)) | 27 dict->SetString(id, l10n_util::GetStringUTF16(idr)) |
| 28 | 28 |
| 29 SET_STRING("WEB_FONT_FAMILY", IDS_WEB_FONT_FAMILY); | 29 SET_STRING("WEB_FONT_FAMILY", IDS_WEB_FONT_FAMILY); |
| 30 SET_STRING("WEB_FONT_SIZE", IDS_WEB_FONT_SIZE); | 30 SET_STRING("WEB_FONT_SIZE", IDS_WEB_FONT_SIZE); |
| 31 | 31 |
| 32 SET_STRING("ROOT_DIRECTORY_LABEL", IDS_FILE_BROWSER_ROOT_DIRECTORY_LABEL); | 32 SET_STRING("ROOT_DIRECTORY_LABEL", IDS_FILE_BROWSER_ROOT_DIRECTORY_LABEL); |
| (...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 522 chromeos::system::StatisticsProvider::GetInstance(); | 522 chromeos::system::StatisticsProvider::GetInstance(); |
| 523 if (!provider->GetMachineStatistic(chromeos::system::kMachineInfoBoard, | 523 if (!provider->GetMachineStatistic(chromeos::system::kMachineInfoBoard, |
| 524 &board)) { | 524 &board)) { |
| 525 board = "unknown"; | 525 board = "unknown"; |
| 526 } | 526 } |
| 527 dict->SetString(chromeos::system::kMachineInfoBoard, board); | 527 dict->SetString(chromeos::system::kMachineInfoBoard, board); |
| 528 return true; | 528 return true; |
| 529 } | 529 } |
| 530 | 530 |
| 531 } // namespace extensions | 531 } // namespace extensions |
| OLD | NEW |