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 26edbafabbba7f0a5b81cf50afce543a1393de86..de857bc5fde206630fbbc85dfc405d6f060474a4 100644 |
--- a/chrome/browser/chromeos/extensions/file_browser_private_api.cc |
+++ b/chrome/browser/chromeos/extensions/file_browser_private_api.cc |
@@ -28,6 +28,7 @@ |
#include "chrome/browser/chromeos/gdata/gdata_system_service.h" |
#include "chrome/browser/chromeos/gdata/gdata_util.h" |
#include "chrome/browser/chromeos/gdata/gdata_wapi_parser.h" |
+#include "chrome/browser/chromeos/system/statistics_provider.h" |
#include "chrome/browser/extensions/extension_function_dispatcher.h" |
#include "chrome/browser/extensions/extension_process_manager.h" |
#include "chrome/browser/extensions/extension_service.h" |
@@ -1633,6 +1634,8 @@ bool FileDialogStringsFunction::RunImpl() { |
SET_STRING(IDS_FILE_BROWSER, GDATA_WELCOME_TEXT_SHORT); |
SET_STRING(IDS_FILE_BROWSER, GDATA_WELCOME_TEXT_LONG); |
SET_STRING(IDS_FILE_BROWSER, GDATA_WELCOME_DISMISS); |
+ SET_STRING(IDS_FILE_BROWSER, GDATA_WELCOME_TITLE_ALTERNATIVE); |
+ SET_STRING(IDS_FILE_BROWSER, GDATA_WELCOME_GET_STARTED); |
SET_STRING(IDS_FILE_BROWSER, NO_ACTION_FOR_FILE); |
// MP3 metadata extractor plugin |
@@ -1735,6 +1738,14 @@ bool FileDialogStringsFunction::RunImpl() { |
dict->SetBoolean("ASH", false); |
#endif |
+ std::string board; |
+ const char kMachineInfoBoard[] = "CHROMEOS_RELEASE_BOARD"; |
+ chromeos::system::StatisticsProvider* provider = |
+ chromeos::system::StatisticsProvider::GetInstance(); |
+ if (!provider->GetMachineStatistic(kMachineInfoBoard, &board)) |
+ board = "unknown"; |
+ dict->SetString(kMachineInfoBoard, board); |
+ |
return true; |
} |