Revert of Add button to add new FSP services to Files app. (patchset #8 id:140001...
[chromium-blink-merge.git] / chrome / browser / chromeos / extensions / file_manager / private_api_strings.cc
blob9278fc504cf5e6f4667d6f9bd6a6e409fae4f617
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
3 // found in the LICENSE file.
5 #include "chrome/browser/chromeos/extensions/file_manager/private_api_strings.h"
7 #include "base/strings/stringprintf.h"
8 #include "base/sys_info.h"
9 #include "chrome/browser/browser_process.h"
10 #include "chrome/browser/chromeos/file_manager/open_with_browser.h"
11 #include "chrome/grit/generated_resources.h"
12 #include "chromeos/system/statistics_provider.h"
13 #include "extensions/common/extension_l10n_util.h"
14 #include "ui/base/l10n/l10n_util.h"
15 #include "ui/base/webui/web_ui_util.h"
16 #include "ui/strings/grit/app_locale_settings.h"
18 namespace {
20 // Location of the page to buy more storage for Google Drive.
21 const char kGoogleDriveBuyStorageUrl[] =
22 "https://www.google.com/settings/storage";
24 // Location of the overview page about Google Drive.
25 const char kGoogleDriveOverviewUrl[] =
26 "https://support.google.com/chromeos/?p=filemanager_drive";
28 // Location of Google drive redeem page.
29 const char kGoogleDriveRedeemUrl[] =
30 "http://www.google.com/intl/en/chrome/devices/goodies.html"
31 "?utm_source=filesapp&utm_medium=banner&utm_campaign=gsg";
33 // Location of Google Drive specific help.
34 const char kGoogleDriveHelpUrl[] =
35 "https://support.google.com/chromeos/?p=filemanager_drivehelp";
37 // Location of Google Drive root.
38 const char kGoogleDriveRootUrl[] = "https://drive.google.com";
40 // Printf format
41 const char kHelpURLFormat[] = "https://support.google.com/chromebook/answer/%d";
43 // Location of the help page for low space warning in the downloads directory.
44 const int kDownloadsLowSpaceWarningHelpNumber = 1061547;
46 // Location of Files App specific help.
47 const int kFilesAppHelpNumber = 1056323;
49 // Location of the help page about connecting to Google Drive.
50 const int kGoogleDriveErrorHelpNumber = 2649458;
52 // Location of the help page about no-action-available files.
53 const int kNoActionForFileHelpNumber = 1700055;
55 #define SET_STRING(id, idr) dict->SetString(id, l10n_util::GetStringUTF16(idr))
57 void AddStringsForFileTypes(base::DictionaryValue* dict) {
58 // TODO(crbug.com/438921): Rename string IDs to something like
59 // FILE_TYPE_WHATEVER.
60 SET_STRING("AUDIO_FILE_TYPE", IDS_FILE_BROWSER_AUDIO_FILE_TYPE);
61 SET_STRING("EXCEL_FILE_TYPE", IDS_FILE_BROWSER_EXCEL_FILE_TYPE);
62 SET_STRING("FOLDER", IDS_FILE_BROWSER_FOLDER);
63 SET_STRING("GDOC_DOCUMENT_FILE_TYPE",
64 IDS_FILE_BROWSER_GDOC_DOCUMENT_FILE_TYPE);
65 SET_STRING("GDRAW_DOCUMENT_FILE_TYPE",
66 IDS_FILE_BROWSER_GDRAW_DOCUMENT_FILE_TYPE);
67 SET_STRING("GENERIC_FILE_TYPE", IDS_FILE_BROWSER_GENERIC_FILE_TYPE);
68 SET_STRING("GFORM_DOCUMENT_FILE_TYPE",
69 IDS_FILE_BROWSER_GFORM_DOCUMENT_FILE_TYPE);
70 SET_STRING("GLINK_DOCUMENT_FILE_TYPE",
71 IDS_FILE_BROWSER_GLINK_DOCUMENT_FILE_TYPE);
72 SET_STRING("GMAP_DOCUMENT_FILE_TYPE",
73 IDS_FILE_BROWSER_GMAP_DOCUMENT_FILE_TYPE);
74 SET_STRING("GSHEET_DOCUMENT_FILE_TYPE",
75 IDS_FILE_BROWSER_GSHEET_DOCUMENT_FILE_TYPE);
76 SET_STRING("GSLIDES_DOCUMENT_FILE_TYPE",
77 IDS_FILE_BROWSER_GSLIDES_DOCUMENT_FILE_TYPE);
78 SET_STRING("GTABLE_DOCUMENT_FILE_TYPE",
79 IDS_FILE_BROWSER_GTABLE_DOCUMENT_FILE_TYPE);
80 SET_STRING("HTML_DOCUMENT_FILE_TYPE",
81 IDS_FILE_BROWSER_HTML_DOCUMENT_FILE_TYPE);
82 SET_STRING("IMAGE_FILE_TYPE", IDS_FILE_BROWSER_IMAGE_FILE_TYPE);
83 SET_STRING("NO_EXTENSION_FILE_TYPE", IDS_FILE_BROWSER_NO_EXTENSION_FILE_TYPE);
84 SET_STRING("PDF_DOCUMENT_FILE_TYPE", IDS_FILE_BROWSER_PDF_DOCUMENT_FILE_TYPE);
85 SET_STRING("PLAIN_TEXT_FILE_TYPE", IDS_FILE_BROWSER_PLAIN_TEXT_FILE_TYPE);
86 SET_STRING("POWERPOINT_PRESENTATION_FILE_TYPE",
87 IDS_FILE_BROWSER_POWERPOINT_PRESENTATION_FILE_TYPE);
88 SET_STRING("RAR_ARCHIVE_FILE_TYPE", IDS_FILE_BROWSER_RAR_ARCHIVE_FILE_TYPE);
89 SET_STRING("TAR_ARCHIVE_FILE_TYPE", IDS_FILE_BROWSER_TAR_ARCHIVE_FILE_TYPE);
90 SET_STRING("TAR_BZIP2_ARCHIVE_FILE_TYPE",
91 IDS_FILE_BROWSER_TAR_BZIP2_ARCHIVE_FILE_TYPE);
92 SET_STRING("TAR_GZIP_ARCHIVE_FILE_TYPE",
93 IDS_FILE_BROWSER_TAR_GZIP_ARCHIVE_FILE_TYPE);
94 SET_STRING("VIDEO_FILE_TYPE", IDS_FILE_BROWSER_VIDEO_FILE_TYPE);
95 SET_STRING("WORD_DOCUMENT_FILE_TYPE",
96 IDS_FILE_BROWSER_WORD_DOCUMENT_FILE_TYPE);
97 SET_STRING("ZIP_ARCHIVE_FILE_TYPE", IDS_FILE_BROWSER_ZIP_ARCHIVE_FILE_TYPE);
100 void AddStringsForDrive(base::DictionaryValue* dict) {
101 SET_STRING("DRIVE_BUY_MORE_SPACE", IDS_FILE_BROWSER_DRIVE_BUY_MORE_SPACE);
102 SET_STRING("DRIVE_BUY_MORE_SPACE_LINK",
103 IDS_FILE_BROWSER_DRIVE_BUY_MORE_SPACE_LINK);
104 SET_STRING("DRIVE_CANNOT_REACH", IDS_FILE_BROWSER_DRIVE_CANNOT_REACH);
105 SET_STRING("DRIVE_DIRECTORY_LABEL", IDS_FILE_BROWSER_DRIVE_DIRECTORY_LABEL);
106 SET_STRING("DRIVE_LEARN_MORE", IDS_FILE_BROWSER_DRIVE_LEARN_MORE);
107 SET_STRING("DRIVE_LOADING", IDS_FILE_BROWSER_DRIVE_LOADING);
108 SET_STRING("DRIVE_MENU_HELP", IDS_FILE_BROWSER_DRIVE_MENU_HELP);
109 SET_STRING("DRIVE_MOBILE_CONNECTION_OPTION",
110 IDS_FILE_BROWSER_DRIVE_MOBILE_CONNECTION_OPTION);
111 SET_STRING("DRIVE_MY_DRIVE_LABEL", IDS_FILE_BROWSER_DRIVE_MY_DRIVE_LABEL);
112 SET_STRING("DRIVE_NOT_REACHED", IDS_FILE_BROWSER_DRIVE_NOT_REACHED);
113 SET_STRING("DRIVE_OFFLINE_COLLECTION_LABEL",
114 IDS_FILE_BROWSER_DRIVE_OFFLINE_COLLECTION_LABEL);
115 SET_STRING("DRIVE_OUT_OF_SPACE_HEADER",
116 IDS_FILE_BROWSER_DRIVE_OUT_OF_SPACE_HEADER);
117 SET_STRING("DRIVE_OUT_OF_SPACE_MESSAGE",
118 IDS_FILE_BROWSER_DRIVE_OUT_OF_SPACE_MESSAGE);
119 SET_STRING("DRIVE_RECENT_COLLECTION_LABEL",
120 IDS_FILE_BROWSER_DRIVE_RECENT_COLLECTION_LABEL);
121 SET_STRING("DRIVE_SERVER_OUT_OF_SPACE_HEADER",
122 IDS_FILE_BROWSER_DRIVE_SERVER_OUT_OF_SPACE_HEADER);
123 SET_STRING("DRIVE_SERVER_OUT_OF_SPACE_MESSAGE",
124 IDS_FILE_BROWSER_DRIVE_SERVER_OUT_OF_SPACE_MESSAGE);
125 SET_STRING("DRIVE_SHARED_WITH_ME_COLLECTION_LABEL",
126 IDS_FILE_BROWSER_DRIVE_SHARED_WITH_ME_COLLECTION_LABEL);
127 SET_STRING("DRIVE_SHARE_TYPE_CAN_COMMENT",
128 IDS_FILE_BROWSER_DRIVE_SHARE_TYPE_CAN_COMMENT);
129 SET_STRING("DRIVE_SHARE_TYPE_CAN_EDIT",
130 IDS_FILE_BROWSER_DRIVE_SHARE_TYPE_CAN_EDIT);
131 SET_STRING("DRIVE_SHARE_TYPE_CAN_VIEW",
132 IDS_FILE_BROWSER_DRIVE_SHARE_TYPE_CAN_VIEW);
133 SET_STRING("DRIVE_SHOW_HOSTED_FILES_OPTION",
134 IDS_FILE_BROWSER_DRIVE_SHOW_HOSTED_FILES_OPTION);
135 SET_STRING("DRIVE_SPACE_AVAILABLE_LONG",
136 IDS_FILE_BROWSER_DRIVE_SPACE_AVAILABLE_LONG);
137 SET_STRING("DRIVE_VISIT_DRIVE_GOOGLE_COM",
138 IDS_FILE_BROWSER_DRIVE_VISIT_DRIVE_GOOGLE_COM);
139 SET_STRING("DRIVE_WELCOME_CHECK_ELIGIBILITY",
140 IDS_FILE_BROWSER_DRIVE_WELCOME_CHECK_ELIGIBILITY);
141 SET_STRING("DRIVE_WELCOME_DISMISS", IDS_FILE_BROWSER_DRIVE_WELCOME_DISMISS);
142 SET_STRING("DRIVE_WELCOME_TEXT_LONG",
143 IDS_FILE_BROWSER_DRIVE_WELCOME_TEXT_LONG);
144 SET_STRING("DRIVE_WELCOME_TEXT_SHORT",
145 IDS_FILE_BROWSER_DRIVE_WELCOME_TEXT_SHORT);
146 SET_STRING("DRIVE_WELCOME_TITLE", IDS_FILE_BROWSER_DRIVE_WELCOME_TITLE);
147 SET_STRING("DRIVE_WELCOME_TITLE_ALTERNATIVE",
148 IDS_FILE_BROWSER_DRIVE_WELCOME_TITLE_ALTERNATIVE);
149 SET_STRING("DRIVE_WELCOME_TITLE_ALTERNATIVE_1TB",
150 IDS_FILE_BROWSER_DRIVE_WELCOME_TITLE_ALTERNATIVE_1TB);
153 void AddStringsForGallery(base::DictionaryValue* dict) {
154 SET_STRING("GALLERY_ASPECT_RATIO_16_9",
155 IDS_FILE_BROWSER_GALLERY_ASPECT_RATIO_16_9);
156 SET_STRING("GALLERY_ASPECT_RATIO_1_1",
157 IDS_FILE_BROWSER_GALLERY_ASPECT_RATIO_1_1);
158 SET_STRING("GALLERY_ASPECT_RATIO_4_6",
159 IDS_FILE_BROWSER_GALLERY_ASPECT_RATIO_4_6);
160 SET_STRING("GALLERY_ASPECT_RATIO_5_7",
161 IDS_FILE_BROWSER_GALLERY_ASPECT_RATIO_5_7);
162 SET_STRING("GALLERY_ASPECT_RATIO_6_4",
163 IDS_FILE_BROWSER_GALLERY_ASPECT_RATIO_6_4);
164 SET_STRING("GALLERY_ASPECT_RATIO_7_5",
165 IDS_FILE_BROWSER_GALLERY_ASPECT_RATIO_7_5);
166 SET_STRING("GALLERY_ASPECT_RATIO_9_16",
167 IDS_FILE_BROWSER_GALLERY_ASPECT_RATIO_9_16);
168 SET_STRING("GALLERY_AUTOFIX", IDS_FILE_BROWSER_GALLERY_AUTOFIX);
169 SET_STRING("GALLERY_BRIGHTNESS", IDS_FILE_BROWSER_GALLERY_BRIGHTNESS);
170 SET_STRING("GALLERY_CANCEL_LABEL", IDS_FILE_BROWSER_CANCEL_LABEL);
171 SET_STRING("GALLERY_CONFIRM_DELETE_ONE", IDS_FILE_BROWSER_CONFIRM_DELETE_ONE);
172 SET_STRING("GALLERY_CONFIRM_DELETE_SOME",
173 IDS_FILE_BROWSER_CONFIRM_DELETE_SOME);
174 SET_STRING("GALLERY_CONTRAST", IDS_FILE_BROWSER_GALLERY_CONTRAST);
175 SET_STRING("GALLERY_CROP", IDS_FILE_BROWSER_GALLERY_CROP);
176 SET_STRING("GALLERY_DELETE", IDS_FILE_BROWSER_GALLERY_DELETE);
177 SET_STRING("GALLERY_EDIT", IDS_FILE_BROWSER_GALLERY_EDIT);
178 SET_STRING("GALLERY_ENTER_WHEN_DONE",
179 IDS_FILE_BROWSER_GALLERY_ENTER_WHEN_DONE);
180 SET_STRING("GALLERY_EXPOSURE", IDS_FILE_BROWSER_GALLERY_EXPOSURE);
181 SET_STRING("GALLERY_FILE_EXISTS", IDS_FILE_BROWSER_GALLERY_FILE_EXISTS);
182 SET_STRING("GALLERY_FILE_HIDDEN_NAME", IDS_FILE_BROWSER_ERROR_HIDDEN_NAME);
183 SET_STRING("GALLERY_FIXED", IDS_FILE_BROWSER_GALLERY_FIXED);
184 SET_STRING("GALLERY_IMAGE_ERROR", IDS_FILE_BROWSER_GALLERY_IMAGE_ERROR);
185 SET_STRING("GALLERY_IMAGE_OFFLINE", IDS_FILE_BROWSER_GALLERY_IMAGE_OFFLINE);
186 SET_STRING("GALLERY_IMAGE_TOO_BIG_ERROR",
187 IDS_FILE_BROWSER_GALLERY_IMAGE_TOO_BIG_ERROR);
188 SET_STRING("GALLERY_ITEMS_SELECTED", IDS_FILE_BROWSER_GALLERY_ITEMS_SELECTED);
189 SET_STRING("GALLERY_MOSAIC", IDS_FILE_BROWSER_GALLERY_MOSAIC);
190 SET_STRING("GALLERY_NO_IMAGES", IDS_FILE_BROWSER_GALLERY_NO_IMAGES);
191 SET_STRING("GALLERY_OK_LABEL", IDS_FILE_BROWSER_OK_LABEL);
192 SET_STRING("GALLERY_OVERWRITE_BUBBLE",
193 IDS_FILE_BROWSER_GALLERY_OVERWRITE_BUBBLE);
194 SET_STRING("GALLERY_OVERWRITE_ORIGINAL",
195 IDS_FILE_BROWSER_GALLERY_OVERWRITE_ORIGINAL);
196 SET_STRING("GALLERY_PRINT", IDS_FILE_BROWSER_GALLERY_PRINT);
197 SET_STRING("GALLERY_READONLY_WARNING",
198 IDS_FILE_BROWSER_GALLERY_READONLY_WARNING);
199 SET_STRING("GALLERY_REDO", IDS_FILE_BROWSER_GALLERY_REDO);
200 SET_STRING("GALLERY_ROTATE_LEFT", IDS_FILE_BROWSER_GALLERY_ROTATE_LEFT);
201 SET_STRING("GALLERY_ROTATE_RIGHT", IDS_FILE_BROWSER_GALLERY_ROTATE_RIGHT);
202 SET_STRING("GALLERY_SAVED", IDS_FILE_BROWSER_GALLERY_SAVED);
203 SET_STRING("GALLERY_SAVE_FAILED", IDS_FILE_BROWSER_GALLERY_SAVE_FAILED);
204 SET_STRING("GALLERY_SHARE", IDS_FILE_BROWSER_GALLERY_SHARE);
205 SET_STRING("GALLERY_SLIDE", IDS_FILE_BROWSER_GALLERY_SLIDE);
206 SET_STRING("GALLERY_SLIDESHOW", IDS_FILE_BROWSER_GALLERY_SLIDESHOW);
207 SET_STRING("GALLERY_UNDO", IDS_FILE_BROWSER_GALLERY_UNDO);
208 SET_STRING("GALLERY_VIDEO_OFFLINE", IDS_FILE_BROWSER_GALLERY_VIDEO_OFFLINE);
211 void AddStringsForVideoPlayer(base::DictionaryValue* dict) {
212 SET_STRING("VIDEO_PLAYER_LOOPED_MODE", IDS_VIDEO_PLAYER_LOOPED_MODE);
213 SET_STRING("VIDEO_PLAYER_PLAYBACK_ERROR", IDS_VIDEO_PLAYER_PLAYBACK_ERROR);
214 SET_STRING("VIDEO_PLAYER_PLAYING_ON", IDS_VIDEO_PLAYER_PLAYING_ON);
215 SET_STRING("VIDEO_PLAYER_PLAY_ON", IDS_VIDEO_PLAYER_PLAY_ON);
216 SET_STRING("VIDEO_PLAYER_PLAY_THIS_COMPUTER",
217 IDS_VIDEO_PLAYER_PLAY_THIS_COMPUTER);
218 SET_STRING("VIDEO_PLAYER_VIDEO_FILE_UNSUPPORTED",
219 IDS_VIDEO_PLAYER_VIDEO_FILE_UNSUPPORTED);
220 SET_STRING("VIDEO_PLAYER_VIDEO_FILE_UNSUPPORTED_FOR_CAST",
221 IDS_VIDEO_PLAYER_VIDEO_FILE_UNSUPPORTED_FOR_CAST);
224 } // namespace
226 namespace extensions {
228 FileManagerPrivateGetStringsFunction::FileManagerPrivateGetStringsFunction() {
231 FileManagerPrivateGetStringsFunction::~FileManagerPrivateGetStringsFunction() {
234 bool FileManagerPrivateGetStringsFunction::RunSync() {
235 base::DictionaryValue* dict = new base::DictionaryValue();
236 SetResult(dict);
238 AddStringsForDrive(dict);
239 AddStringsForFileTypes(dict);
240 AddStringsForGallery(dict);
241 AddStringsForVideoPlayer(dict);
243 SET_STRING("ACTION_LISTEN", IDS_FILE_BROWSER_ACTION_LISTEN);
244 SET_STRING("ACTION_OPEN", IDS_FILE_BROWSER_ACTION_OPEN);
245 SET_STRING("ACTION_OPEN_GDOC", IDS_FILE_BROWSER_ACTION_OPEN_GDOC);
246 SET_STRING("ACTION_OPEN_GSHEET", IDS_FILE_BROWSER_ACTION_OPEN_GSHEET);
247 SET_STRING("ACTION_OPEN_GSLIDES", IDS_FILE_BROWSER_ACTION_OPEN_GSLIDES);
248 SET_STRING("ACTION_VIEW", IDS_FILE_BROWSER_ACTION_VIEW);
249 SET_STRING("ACTION_WATCH", IDS_FILE_BROWSER_ACTION_WATCH);
250 SET_STRING("ALL_FILES_FILTER", IDS_FILE_BROWSER_ALL_FILES_FILTER);
251 SET_STRING("ARCHIVE_DIRECTORY_LABEL",
252 IDS_FILE_BROWSER_ARCHIVE_DIRECTORY_LABEL);
253 SET_STRING("ARCHIVE_MOUNT_FAILED", IDS_FILE_BROWSER_ARCHIVE_MOUNT_FAILED);
254 SET_STRING("AUDIO_ERROR", IDS_FILE_BROWSER_AUDIO_ERROR);
255 SET_STRING("AUDIO_OFFLINE", IDS_FILE_BROWSER_AUDIO_OFFLINE);
256 SET_STRING("AUDIO_PLAYER_DEFAULT_ARTIST",
257 IDS_FILE_BROWSER_AUDIO_PLAYER_DEFAULT_ARTIST);
258 SET_STRING("AUDIO_PLAYER_TITLE", IDS_FILE_BROWSER_AUDIO_PLAYER_TITLE);
259 SET_STRING("CALCULATING_SIZE", IDS_FILE_BROWSER_CALCULATING_SIZE);
260 SET_STRING("CANCEL_LABEL", IDS_FILE_BROWSER_CANCEL_LABEL);
261 SET_STRING("CHANGE_DEFAULT_CAPTION", IDS_FILE_BROWSER_CHANGE_DEFAULT_CAPTION);
262 SET_STRING("CHANGE_DEFAULT_MENU_ITEM",
263 IDS_FILE_BROWSER_CHANGE_DEFAULT_MENU_ITEM);
264 SET_STRING("CLOSE_VOLUME_BUTTON_LABEL",
265 IDS_FILE_BROWSER_CLOSE_VOLUME_BUTTON_LABEL);
267 SET_STRING("CLOUD_IMPORT_TITLE",
268 IDS_FILE_BROWSER_CLOUD_IMPORT_TITLE);
269 SET_STRING("CLOUD_IMPORT_DESTINATION_FOLDER",
270 IDS_FILE_BROWSER_CLOUD_DESTINATION_FOLDER);
271 SET_STRING("CLOUD_IMPORT_DESCRIPTION",
272 IDS_FILE_BROWSER_CLOUD_IMPORT_DESCRIPTION);
273 SET_STRING("CLOUD_IMPORT_START",
274 IDS_FILE_BROWSER_CLOUD_IMPORT_START);
275 SET_STRING("CLOUD_IMPORT_SHOW_DETAILS",
276 IDS_FILE_BROWSER_CLOUD_IMPORT_SHOW_DETAILS);
277 SET_STRING("CLOUD_IMPORT_COMMAND",
278 IDS_FILE_BROWSER_CLOUD_IMPORT_COMMAND);
279 SET_STRING("CLOUD_IMPORT_CANCEL_COMMAND",
280 IDS_FILE_BROWSER_CLOUD_IMPORT_CANCEL_COMMAND);
282 SET_STRING("CLOUD_IMPORT_STATUS_READY",
283 IDS_FILE_BROWSER_CLOUD_IMPORT_STATUS_DONE);
284 SET_STRING("CLOUD_IMPORT_STATUS_IMPORTING",
285 IDS_FILE_BROWSER_CLOUD_IMPORT_STATUS_IMPORTING);
286 SET_STRING("CLOUD_IMPORT_STATUS_INSUFFICIENT_SPACE",
287 IDS_FILE_BROWSER_CLOUD_IMPORT_STATUS_INSUFFICIENT_SPACE);
288 SET_STRING("CLOUD_IMPORT_STATUS_NO_MEDIA",
289 IDS_FILE_BROWSER_CLOUD_IMPORT_STATUS_NO_MEDIA);
290 SET_STRING("CLOUD_IMPORT_STATUS_READY",
291 IDS_FILE_BROWSER_CLOUD_IMPORT_STATUS_READY);
292 SET_STRING("CLOUD_IMPORT_STATUS_SCANNING",
293 IDS_FILE_BROWSER_CLOUD_IMPORT_STATUS_SCANNING);
294 SET_STRING("CLOUD_IMPORT_ITEMS_REMAINING",
295 IDS_FILE_BROWSER_CLOUD_IMPORT_ITEMS_REMAINING);
297 SET_STRING("CLOUD_IMPORT_TOOLTIP_READY",
298 IDS_FILE_BROWSER_CLOUD_IMPORT_TOOLTIP_DONE);
299 SET_STRING("CLOUD_IMPORT_TOOLTIP_IMPORTING",
300 IDS_FILE_BROWSER_CLOUD_IMPORT_TOOLTIP_IMPORTING);
301 SET_STRING("CLOUD_IMPORT_TOOLTIP_INSUFFICIENT_SPACE",
302 IDS_FILE_BROWSER_CLOUD_IMPORT_TOOLTIP_INSUFFICIENT_SPACE);
303 SET_STRING("CLOUD_IMPORT_TOOLTIP_NO_MEDIA",
304 IDS_FILE_BROWSER_CLOUD_IMPORT_TOOLTIP_NO_MEDIA);
305 SET_STRING("CLOUD_IMPORT_TOOLTIP_READY",
306 IDS_FILE_BROWSER_CLOUD_IMPORT_TOOLTIP_READY);
307 SET_STRING("CLOUD_IMPORT_TOOLTIP_SCANNING",
308 IDS_FILE_BROWSER_CLOUD_IMPORT_TOOLTIP_SCANNING);
310 SET_STRING("CONFIRM_MOBILE_DATA_USE",
311 IDS_FILE_BROWSER_CONFIRM_MOBILE_DATA_USE);
312 SET_STRING("CONFIRM_MOBILE_DATA_USE_PLURAL",
313 IDS_FILE_BROWSER_CONFIRM_MOBILE_DATA_USE_PLURAL);
314 SET_STRING("CONFIRM_OVERWRITE_FILE", IDS_FILE_BROWSER_CONFIRM_OVERWRITE_FILE);
315 SET_STRING("CONFLICT_DIALOG_APPLY_TO_ALL",
316 IDS_FILE_BROWSER_CONFLICT_DIALOG_APPLY_TO_ALL);
317 SET_STRING("CONFLICT_DIALOG_KEEP_BOTH",
318 IDS_FILE_BROWSER_CONFLICT_DIALOG_KEEP_BOTH);
319 SET_STRING("CONFLICT_DIALOG_MESSAGE",
320 IDS_FILE_BROWSER_CONFLICT_DIALOG_MESSAGE);
321 SET_STRING("CONFLICT_DIALOG_REPLACE",
322 IDS_FILE_BROWSER_CONFLICT_DIALOG_REPLACE);
323 SET_STRING("COPY_BUTTON_LABEL", IDS_FILE_BROWSER_COPY_BUTTON_LABEL);
324 SET_STRING("COPY_FILESYSTEM_ERROR", IDS_FILE_BROWSER_COPY_FILESYSTEM_ERROR);
325 SET_STRING("COPY_FILE_NAME", IDS_FILE_BROWSER_COPY_FILE_NAME);
326 SET_STRING("COPY_ITEMS_REMAINING", IDS_FILE_BROWSER_COPY_ITEMS_REMAINING);
327 SET_STRING("COPY_PROGRESS_SUMMARY", IDS_FILE_BROWSER_COPY_PROGRESS_SUMMARY);
328 SET_STRING("COPY_SOURCE_NOT_FOUND_ERROR",
329 IDS_FILE_BROWSER_COPY_SOURCE_NOT_FOUND_ERROR);
330 SET_STRING("COPY_TARGET_EXISTS_ERROR",
331 IDS_FILE_BROWSER_COPY_TARGET_EXISTS_ERROR);
332 SET_STRING("COPY_UNEXPECTED_ERROR", IDS_FILE_BROWSER_COPY_UNEXPECTED_ERROR);
333 SET_STRING("CREATE_FOLDER_SHORTCUT_BUTTON_LABEL",
334 IDS_FILE_BROWSER_CREATE_FOLDER_SHORTCUT_BUTTON_LABEL);
335 SET_STRING("CUT_BUTTON_LABEL", IDS_FILE_BROWSER_CUT_BUTTON_LABEL);
336 SET_STRING("DATE_COLUMN_LABEL", IDS_FILE_BROWSER_DATE_COLUMN_LABEL);
337 SET_STRING("DEFAULT_ACTION_LABEL", IDS_FILE_BROWSER_DEFAULT_ACTION_LABEL);
338 SET_STRING("DEFAULT_NEW_FOLDER_NAME",
339 IDS_FILE_BROWSER_DEFAULT_NEW_FOLDER_NAME);
340 SET_STRING("DELETE_BUTTON_LABEL", IDS_FILE_BROWSER_DELETE_BUTTON_LABEL);
341 SET_STRING("DELETE_ERROR", IDS_FILE_BROWSER_DELETE_ERROR);
342 SET_STRING("DELETE_FILE_NAME", IDS_FILE_BROWSER_DELETE_FILE_NAME);
343 SET_STRING("DELETE_ITEMS_REMAINING", IDS_FILE_BROWSER_DELETE_ITEMS_REMAINING);
344 SET_STRING("DELETE_PROGRESS_SUMMARY",
345 IDS_FILE_BROWSER_DELETE_PROGRESS_SUMMARY);
346 SET_STRING("DETAIL_VIEW_TOOLTIP", IDS_FILE_BROWSER_DETAIL_VIEW_TOOLTIP);
347 SET_STRING("DEVICE_HARD_UNPLUGGED_MESSAGE",
348 IDS_DEVICE_HARD_UNPLUGGED_MESSAGE);
349 SET_STRING("DEVICE_HARD_UNPLUGGED_TITLE", IDS_DEVICE_HARD_UNPLUGGED_TITLE);
350 SET_STRING("DEVICE_UNKNOWN_BUTTON_LABEL", IDS_DEVICE_UNKNOWN_BUTTON_LABEL);
351 SET_STRING("DEVICE_UNKNOWN_DEFAULT_MESSAGE",
352 IDS_DEVICE_UNKNOWN_DEFAULT_MESSAGE);
353 SET_STRING("DEVICE_UNKNOWN_MESSAGE", IDS_DEVICE_UNKNOWN_MESSAGE);
354 SET_STRING("DEVICE_UNSUPPORTED_DEFAULT_MESSAGE",
355 IDS_DEVICE_UNSUPPORTED_DEFAULT_MESSAGE);
356 SET_STRING("DEVICE_UNSUPPORTED_MESSAGE", IDS_DEVICE_UNSUPPORTED_MESSAGE);
357 SET_STRING("DIRECTORY_ALREADY_EXISTS",
358 IDS_FILE_BROWSER_DIRECTORY_ALREADY_EXISTS);
359 SET_STRING("DISABLED_MOBILE_SYNC_NOTIFICATION_ENABLE_BUTTON",
360 IDS_FILE_BROWSER_DISABLED_MOBILE_SYNC_NOTIFICATION_ENABLE_BUTTON);
361 SET_STRING("DISABLED_MOBILE_SYNC_NOTIFICATION_MESSAGE",
362 IDS_FILE_BROWSER_DISABLED_MOBILE_SYNC_NOTIFICATION_MESSAGE);
363 SET_STRING("DOWNLOADS_DIRECTORY_LABEL",
364 IDS_FILE_BROWSER_DOWNLOADS_DIRECTORY_LABEL);
365 SET_STRING("DOWNLOADS_DIRECTORY_WARNING",
366 IDS_FILE_BROWSER_DOWNLOADS_DIRECTORY_WARNING);
367 SET_STRING("DRAGGING_MULTIPLE_ITEMS",
368 IDS_FILE_BROWSER_DRAGGING_MULTIPLE_ITEMS);
369 SET_STRING("ERROR_CREATING_FOLDER", IDS_FILE_BROWSER_ERROR_CREATING_FOLDER);
370 SET_STRING("ERROR_HIDDEN_NAME", IDS_FILE_BROWSER_ERROR_HIDDEN_NAME);
371 SET_STRING("ERROR_INVALID_CHARACTER",
372 IDS_FILE_BROWSER_ERROR_INVALID_CHARACTER);
373 SET_STRING("ERROR_LONG_NAME", IDS_FILE_BROWSER_ERROR_LONG_NAME);
374 SET_STRING("ERROR_PROGRESS_SUMMARY", IDS_FILE_BROWSER_ERROR_PROGRESS_SUMMARY);
375 SET_STRING("ERROR_PROGRESS_SUMMARY_PLURAL",
376 IDS_FILE_BROWSER_ERROR_PROGRESS_SUMMARY_PLURAL);
377 SET_STRING("ERROR_RENAMING", IDS_FILE_BROWSER_ERROR_RENAMING);
378 SET_STRING("ERROR_RESERVED_NAME", IDS_FILE_BROWSER_ERROR_RESERVED_NAME);
379 SET_STRING("ERROR_WHITESPACE_NAME", IDS_FILE_BROWSER_ERROR_WHITESPACE_NAME);
380 SET_STRING("EXTERNAL_STORAGE_DISABLED_MESSAGE",
381 IDS_EXTERNAL_STORAGE_DISABLED_MESSAGE);
382 SET_STRING("FAILED_SPACE_INFO", IDS_FILE_BROWSER_FAILED_SPACE_INFO);
383 SET_STRING("FILENAME_LABEL", IDS_FILE_BROWSER_FILENAME_LABEL);
384 SET_STRING("FILE_ALREADY_EXISTS", IDS_FILE_BROWSER_FILE_ALREADY_EXISTS);
385 SET_STRING("FILE_ERROR_GENERIC", IDS_FILE_BROWSER_FILE_ERROR_GENERIC);
386 SET_STRING("FILE_ERROR_INVALID_MODIFICATION",
387 IDS_FILE_BROWSER_FILE_ERROR_INVALID_MODIFICATION);
388 SET_STRING("FILE_ERROR_INVALID_STATE",
389 IDS_FILE_BROWSER_FILE_ERROR_INVALID_STATE);
390 SET_STRING("FILE_ERROR_NOT_FOUND", IDS_FILE_BROWSER_FILE_ERROR_NOT_FOUND);
391 SET_STRING("FILE_ERROR_NOT_READABLE",
392 IDS_FILE_BROWSER_FILE_ERROR_NOT_READABLE);
393 SET_STRING("FILE_ERROR_NO_MODIFICATION_ALLOWED",
394 IDS_FILE_BROWSER_FILE_ERROR_NO_MODIFICATION_ALLOWED);
395 SET_STRING("FILE_ERROR_PATH_EXISTS", IDS_FILE_BROWSER_FILE_ERROR_PATH_EXISTS);
396 SET_STRING("FILE_ERROR_QUOTA_EXCEEDED",
397 IDS_FILE_BROWSER_FILE_ERROR_QUOTA_EXCEEDED);
398 SET_STRING("FILE_ERROR_SECURITY", IDS_FILE_BROWSER_FILE_ERROR_SECURITY);
399 SET_STRING("FORMATTING_FINISHED_FAILURE_MESSAGE",
400 IDS_FORMATTING_FINISHED_FAILURE_MESSAGE);
401 SET_STRING("FORMATTING_FINISHED_SUCCESS_MESSAGE",
402 IDS_FORMATTING_FINISHED_SUCCESS_MESSAGE);
403 SET_STRING("FORMATTING_OF_DEVICE_FAILED_TITLE",
404 IDS_FORMATTING_OF_DEVICE_FAILED_TITLE);
405 SET_STRING("FORMATTING_OF_DEVICE_FINISHED_TITLE",
406 IDS_FORMATTING_OF_DEVICE_FINISHED_TITLE);
407 SET_STRING("FORMATTING_OF_DEVICE_PENDING_MESSAGE",
408 IDS_FORMATTING_OF_DEVICE_PENDING_MESSAGE);
409 SET_STRING("FORMATTING_OF_DEVICE_PENDING_TITLE",
410 IDS_FORMATTING_OF_DEVICE_PENDING_TITLE);
411 SET_STRING("FORMATTING_WARNING", IDS_FILE_BROWSER_FORMATTING_WARNING);
412 SET_STRING("FORMAT_DEVICE_BUTTON_LABEL",
413 IDS_FILE_BROWSER_FORMAT_DEVICE_BUTTON_LABEL);
414 SET_STRING("GEAR_BUTTON_TOOLTIP", IDS_FILE_BROWSER_GEAR_BUTTON_TOOLTIP);
415 SET_STRING("HOSTED_OFFLINE_MESSAGE", IDS_FILE_BROWSER_HOSTED_OFFLINE_MESSAGE);
416 SET_STRING("HOSTED_OFFLINE_MESSAGE_PLURAL",
417 IDS_FILE_BROWSER_HOSTED_OFFLINE_MESSAGE_PLURAL);
418 SET_STRING("MANY_DIRECTORIES_SELECTED",
419 IDS_FILE_BROWSER_MANY_DIRECTORIES_SELECTED);
420 SET_STRING("MANY_ENTRIES_SELECTED", IDS_FILE_BROWSER_MANY_ENTRIES_SELECTED);
421 SET_STRING("MANY_FILES_SELECTED", IDS_FILE_BROWSER_MANY_FILES_SELECTED);
422 SET_STRING("MORE_ACTIONS", IDS_FILE_BROWSER_MORE_ACTIONS);
423 SET_STRING("MOUNT_ARCHIVE", IDS_FILE_BROWSER_MOUNT_ARCHIVE);
424 SET_STRING("MOVE_FILESYSTEM_ERROR", IDS_FILE_BROWSER_MOVE_FILESYSTEM_ERROR);
425 SET_STRING("MOVE_FILE_NAME", IDS_FILE_BROWSER_MOVE_FILE_NAME);
426 SET_STRING("MOVE_ITEMS_REMAINING", IDS_FILE_BROWSER_MOVE_ITEMS_REMAINING);
427 SET_STRING("MOVE_PROGRESS_SUMMARY", IDS_FILE_BROWSER_MOVE_PROGRESS_SUMMARY);
428 SET_STRING("MOVE_SOURCE_NOT_FOUND_ERROR",
429 IDS_FILE_BROWSER_MOVE_SOURCE_NOT_FOUND_ERROR);
430 SET_STRING("MOVE_TARGET_EXISTS_ERROR",
431 IDS_FILE_BROWSER_MOVE_TARGET_EXISTS_ERROR);
432 SET_STRING("MOVE_UNEXPECTED_ERROR", IDS_FILE_BROWSER_MOVE_UNEXPECTED_ERROR);
433 SET_STRING("MULTIPART_DEVICE_UNSUPPORTED_DEFAULT_MESSAGE",
434 IDS_MULTIPART_DEVICE_UNSUPPORTED_DEFAULT_MESSAGE);
435 SET_STRING("MULTIPART_DEVICE_UNSUPPORTED_MESSAGE",
436 IDS_MULTIPART_DEVICE_UNSUPPORTED_MESSAGE);
437 SET_STRING("MULTI_PROFILE_SHARE_DIALOG_MESSAGE",
438 IDS_FILE_BROWSER_MULTI_PROFILE_SHARE_DIALOG_MESSAGE);
439 SET_STRING("MULTI_PROFILE_SHARE_DIALOG_MESSAGE_PLURAL",
440 IDS_FILE_BROWSER_MULTI_PROFILE_SHARE_DIALOG_MESSAGE_PLURAL);
441 SET_STRING("MULTI_PROFILE_SHARE_DIALOG_TITLE",
442 IDS_FILE_BROWSER_MULTI_PROFILE_SHARE_DIALOG_TITLE);
443 SET_STRING("MULTI_PROFILE_SHARE_DIALOG_TITLE_PLURAL",
444 IDS_FILE_BROWSER_MULTI_PROFILE_SHARE_DIALOG_TITLE_PLURAL);
445 SET_STRING("NAME_COLUMN_LABEL", IDS_FILE_BROWSER_NAME_COLUMN_LABEL);
446 SET_STRING("NEW_FOLDER_BUTTON_LABEL",
447 IDS_FILE_BROWSER_NEW_FOLDER_BUTTON_LABEL);
448 SET_STRING("NEW_WINDOW_BUTTON_LABEL",
449 IDS_FILE_BROWSER_NEW_WINDOW_BUTTON_LABEL);
450 SET_STRING("NO_ACTION_FOR_CRX", IDS_FILE_BROWSER_NO_ACTION_FOR_CRX);
451 SET_STRING("NO_ACTION_FOR_CRX_TITLE",
452 IDS_FILE_BROWSER_NO_ACTION_FOR_CRX_TITLE);
453 SET_STRING("NO_ACTION_FOR_DMG", IDS_FILE_BROWSER_NO_ACTION_FOR_DMG);
454 SET_STRING("NO_ACTION_FOR_EXECUTABLE",
455 IDS_FILE_BROWSER_NO_ACTION_FOR_EXECUTABLE);
456 SET_STRING("NO_ACTION_FOR_FILE", IDS_FILE_BROWSER_NO_ACTION_FOR_FILE);
457 SET_STRING("OFFLINE_COLUMN_LABEL", IDS_FILE_BROWSER_OFFLINE_COLUMN_LABEL);
458 SET_STRING("OFFLINE_HEADER", IDS_FILE_BROWSER_OFFLINE_HEADER);
459 SET_STRING("OFFLINE_MESSAGE", IDS_FILE_BROWSER_OFFLINE_MESSAGE);
460 SET_STRING("OFFLINE_MESSAGE_PLURAL", IDS_FILE_BROWSER_OFFLINE_MESSAGE_PLURAL);
461 SET_STRING("OK_LABEL", IDS_FILE_BROWSER_OK_LABEL);
462 SET_STRING("OPEN_IN_OTHER_DESKTOP_MESSAGE",
463 IDS_FILE_BROWSER_OPEN_IN_OTHER_DESKTOP_MESSAGE);
464 SET_STRING("OPEN_IN_OTHER_DESKTOP_MESSAGE_PLURAL",
465 IDS_FILE_BROWSER_OPEN_IN_OTHER_DESKTOP_MESSAGE_PLURAL);
466 SET_STRING("OPEN_LABEL", IDS_FILE_BROWSER_OPEN_LABEL);
467 SET_STRING("OPEN_WITH_BUTTON_LABEL", IDS_FILE_BROWSER_OPEN_WITH_BUTTON_LABEL);
468 SET_STRING("PASTE_BUTTON_LABEL", IDS_FILE_BROWSER_PASTE_BUTTON_LABEL);
469 SET_STRING("PASTE_INTO_FOLDER_BUTTON_LABEL",
470 IDS_FILE_BROWSER_PASTE_INTO_FOLDER_BUTTON_LABEL);
471 SET_STRING("PREPARING_LABEL", IDS_FILE_BROWSER_PREPARING_LABEL);
472 SET_STRING("REMOVABLE_DEVICE_DETECTION_TITLE",
473 IDS_REMOVABLE_DEVICE_DETECTION_TITLE);
474 SET_STRING("REMOVABLE_DEVICE_IMPORT_BUTTON_LABEL",
475 IDS_REMOVABLE_DEVICE_IMPORT_BUTTON_LABEL);
476 SET_STRING("REMOVABLE_DEVICE_IMPORT_MESSAGE",
477 IDS_REMOVABLE_DEVICE_IMPORT_MESSAGE);
478 SET_STRING("REMOVABLE_DEVICE_NAVIGATION_BUTTON_LABEL",
479 IDS_REMOVABLE_DEVICE_NAVIGATION_BUTTON_LABEL);
480 SET_STRING("REMOVABLE_DEVICE_NAVIGATION_MESSAGE",
481 IDS_REMOVABLE_DEVICE_NAVIGATION_MESSAGE);
482 SET_STRING("REMOVABLE_DIRECTORY_LABEL",
483 IDS_FILE_BROWSER_REMOVABLE_DIRECTORY_LABEL);
484 SET_STRING("REMOVE_FOLDER_SHORTCUT_BUTTON_LABEL",
485 IDS_FILE_BROWSER_REMOVE_FOLDER_SHORTCUT_BUTTON_LABEL);
486 SET_STRING("RENAME_BUTTON_LABEL", IDS_FILE_BROWSER_RENAME_BUTTON_LABEL);
487 SET_STRING("SAVE_LABEL", IDS_FILE_BROWSER_SAVE_LABEL);
488 SET_STRING("SEARCH_DRIVE_HTML", IDS_FILE_BROWSER_SEARCH_DRIVE_HTML);
489 SET_STRING("SEARCH_NO_MATCHING_FILES_HTML",
490 IDS_FILE_BROWSER_SEARCH_NO_MATCHING_FILES_HTML);
491 SET_STRING("SEARCH_TEXT_LABEL", IDS_FILE_BROWSER_SEARCH_TEXT_LABEL);
492 SET_STRING("TASKS_BUTTON_LABEL", IDS_FILE_BROWSER_TASKS_BUTTON_LABEL);
493 SET_STRING("TOGGLE_HIDDEN_FILES_COMMAND_LABEL",
494 IDS_FILE_BROWSER_TOGGLE_HIDDEN_FILES_COMMAND_LABEL);
495 SET_STRING("SHARE_BUTTON_LABEL", IDS_FILE_BROWSER_SHARE_BUTTON_LABEL);
496 SET_STRING("CHANGE_TO_LISTVIEW_BUTTON_LABEL",
497 IDS_FILE_BROWSER_CHANGE_TO_LISTVIEW_BUTTON_LABEL);
498 SET_STRING("CHANGE_TO_THUMBNAILVIEW_BUTTON_LABEL",
499 IDS_FILE_BROWSER_CHANGE_TO_THUMBNAILVIEW_BUTTON_LABEL);
500 SET_STRING("CANCEL_SELECTION_BUTTON_LABEL",
501 IDS_FILE_BROWSER_CANCEL_SELECTION_BUTTON_LABEL);
502 SET_STRING("SHARE_ERROR", IDS_FILE_BROWSER_SHARE_ERROR);
504 // Shortcut key names: used from cr.ui.MenuItem.updateShortcut_.
505 SET_STRING("SHORTCUT_ALT", IDS_FILE_BROWSER_SHORTCUT_ALT);
506 SET_STRING("SHORTCUT_CTRL", IDS_FILE_BROWSER_SHORTCUT_CTRL);
507 SET_STRING("SHORTCUT_ENTER", IDS_FILE_BROWSER_SHORTCUT_ENTER);
508 SET_STRING("SHORTCUT_META", IDS_FILE_BROWSER_SHORTCUT_META);
509 SET_STRING("SHORTCUT_SHIFT", IDS_FILE_BROWSER_SHORTCUT_SHIFT);
510 SET_STRING("SHORTCUT_SPACE", IDS_FILE_BROWSER_SHORTCUT_SPACE);
512 SET_STRING("SIZE_BYTES", IDS_FILE_BROWSER_SIZE_BYTES);
513 SET_STRING("SIZE_COLUMN_LABEL", IDS_FILE_BROWSER_SIZE_COLUMN_LABEL);
514 SET_STRING("SIZE_GB", IDS_FILE_BROWSER_SIZE_GB);
515 SET_STRING("SIZE_KB", IDS_FILE_BROWSER_SIZE_KB);
516 SET_STRING("SIZE_MB", IDS_FILE_BROWSER_SIZE_MB);
517 SET_STRING("SIZE_PB", IDS_FILE_BROWSER_SIZE_PB);
518 SET_STRING("SIZE_TB", IDS_FILE_BROWSER_SIZE_TB);
519 SET_STRING("SPACE_AVAILABLE", IDS_FILE_BROWSER_SPACE_AVAILABLE);
520 SET_STRING("STATUS_COLUMN_LABEL", IDS_FILE_BROWSER_STATUS_COLUMN_LABEL);
521 SET_STRING("SUGGEST_DIALOG_INSTALLATION_FAILED",
522 IDS_FILE_BROWSER_SUGGEST_DIALOG_INSTALLATION_FAILED);
523 SET_STRING("SUGGEST_DIALOG_LINK_TO_WEBSTORE",
524 IDS_FILE_BROWSER_SUGGEST_DIALOG_LINK_TO_WEBSTORE);
525 SET_STRING("SUGGEST_DIALOG_TITLE", IDS_FILE_BROWSER_SUGGEST_DIALOG_TITLE);
526 SET_STRING("SYNC_DELETE_WITHOUT_PERMISSION_ERROR",
527 IDS_FILE_BROWSER_SYNC_DELETE_WITHOUT_PERMISSION_ERROR);
528 SET_STRING("SYNC_FILE_NAME", IDS_FILE_BROWSER_SYNC_FILE_NAME);
529 SET_STRING("SYNC_FILE_NUMBER", IDS_FILE_BROWSER_SYNC_FILE_NUMBER);
530 SET_STRING("SYNC_MISC_ERROR", IDS_FILE_BROWSER_SYNC_MISC_ERROR);
531 SET_STRING("SYNC_PROGRESS_SUMMARY", IDS_FILE_BROWSER_SYNC_PROGRESS_SUMMARY);
532 SET_STRING("SYNC_SERVICE_UNAVAILABLE_ERROR",
533 IDS_FILE_BROWSER_SYNC_SERVICE_UNAVAILABLE_ERROR);
534 SET_STRING("THUMBNAIL_VIEW_TOOLTIP", IDS_FILE_BROWSER_THUMBNAIL_VIEW_TOOLTIP);
535 SET_STRING("TIME_TODAY", IDS_FILE_BROWSER_TIME_TODAY);
536 SET_STRING("TIME_YESTERDAY", IDS_FILE_BROWSER_TIME_YESTERDAY);
537 SET_STRING("TRANSFER_PROGRESS_SUMMARY",
538 IDS_FILE_BROWSER_TRANSFER_PROGRESS_SUMMARY);
539 SET_STRING("TYPE_COLUMN_LABEL", IDS_FILE_BROWSER_TYPE_COLUMN_LABEL);
540 SET_STRING("UNKNOWN_FILESYSTEM_WARNING",
541 IDS_FILE_BROWSER_UNKNOWN_FILESYSTEM_WARNING);
542 SET_STRING("UNMOUNT_DEVICE_BUTTON_LABEL",
543 IDS_FILE_BROWSER_UNMOUNT_DEVICE_BUTTON_LABEL);
544 SET_STRING("UNMOUNT_FAILED", IDS_FILE_BROWSER_UNMOUNT_FAILED);
545 SET_STRING("UNSUPPORTED_FILESYSTEM_WARNING",
546 IDS_FILE_BROWSER_UNSUPPORTED_FILESYSTEM_WARNING);
547 SET_STRING("UPLOAD_LABEL", IDS_FILE_BROWSER_UPLOAD_LABEL);
548 SET_STRING("VIEW_TYPE_LABEL", IDS_FILE_BROWSER_VIEW_TYPE_LABEL);
549 SET_STRING("VISIT_DESKTOP_OF_USER", IDS_VISIT_DESKTOP_OF_LRU_USER);
550 SET_STRING("WAITING_FOR_SPACE_INFO", IDS_FILE_BROWSER_WAITING_FOR_SPACE_INFO);
551 SET_STRING("WEB_FONT_FAMILY", IDS_WEB_FONT_FAMILY);
552 SET_STRING("WEB_FONT_SIZE", IDS_WEB_FONT_SIZE);
553 SET_STRING("ZIP_FILESYSTEM_ERROR", IDS_FILE_BROWSER_ZIP_FILESYSTEM_ERROR);
554 SET_STRING("ZIP_FILE_NAME", IDS_FILE_BROWSER_ZIP_FILE_NAME);
555 SET_STRING("ZIP_ITEMS_REMAINING", IDS_FILE_BROWSER_ZIP_ITEMS_REMAINING);
556 SET_STRING("ZIP_PROGRESS_SUMMARY", IDS_FILE_BROWSER_ZIP_PROGRESS_SUMMARY);
557 SET_STRING("ZIP_SELECTION_BUTTON_LABEL",
558 IDS_FILE_BROWSER_ZIP_SELECTION_BUTTON_LABEL);
559 SET_STRING("ZIP_TARGET_EXISTS_ERROR",
560 IDS_FILE_BROWSER_ZIP_TARGET_EXISTS_ERROR);
561 SET_STRING("ZIP_UNEXPECTED_ERROR", IDS_FILE_BROWSER_ZIP_UNEXPECTED_ERROR);
562 #undef SET_STRING
564 dict->SetBoolean("PDF_VIEW_ENABLED",
565 file_manager::util::ShouldBeOpenedWithPlugin(
566 GetProfile(), FILE_PATH_LITERAL(".pdf")));
567 dict->SetBoolean("SWF_VIEW_ENABLED",
568 file_manager::util::ShouldBeOpenedWithPlugin(
569 GetProfile(), FILE_PATH_LITERAL(".swf")));
570 dict->SetString("CHROMEOS_RELEASE_BOARD",
571 base::SysInfo::GetLsbReleaseBoard());
572 dict->SetString(
573 "DOWNLOADS_LOW_SPACE_WARNING_HELP_URL",
574 base::StringPrintf(kHelpURLFormat, kDownloadsLowSpaceWarningHelpNumber));
575 dict->SetString("FILES_APP_HELP_URL",
576 base::StringPrintf(kHelpURLFormat, kFilesAppHelpNumber));
578 dict->SetString("GOOGLE_DRIVE_BUY_STORAGE_URL", kGoogleDriveBuyStorageUrl);
579 dict->SetString(
580 "GOOGLE_DRIVE_ERROR_HELP_URL",
581 base::StringPrintf(kHelpURLFormat, kGoogleDriveErrorHelpNumber));
582 dict->SetString("GOOGLE_DRIVE_HELP_URL", kGoogleDriveHelpUrl);
583 dict->SetString("GOOGLE_DRIVE_OVERVIEW_URL", kGoogleDriveOverviewUrl);
584 dict->SetString("GOOGLE_DRIVE_REDEEM_URL", kGoogleDriveRedeemUrl);
585 dict->SetString("GOOGLE_DRIVE_ROOT_URL", kGoogleDriveRootUrl);
586 dict->SetString(
587 "NO_ACTION_FOR_FILE_URL",
588 base::StringPrintf(kHelpURLFormat, kNoActionForFileHelpNumber));
589 dict->SetString("UI_LOCALE", extension_l10n_util::CurrentLocaleOrDefault());
591 const std::string& app_locale = g_browser_process->GetApplicationLocale();
592 webui::SetLoadTimeDataDefaults(app_locale, dict);
594 return true;
597 } // namespace extensions