Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(725)

Unified Diff: chrome/browser/chromeos/extensions/file_browser_private_api.cc

Issue 10818031: Alternative GDrive promo for the File Manager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Some tweaks Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/chromeos/system/statistics_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/chromeos/system/statistics_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698