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

Side by Side Diff: chrome/browser/chromeos/extensions/file_manager/private_api_strings.cc

Issue 880313002: webui: add [lang] attribute to <html> element on all webui pages so (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cros Created 5 years, 10 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/chromeos/extensions/first_run_private_api.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/browser_process.h"
9 #include "chrome/browser/chromeos/file_manager/open_with_browser.h" 10 #include "chrome/browser/chromeos/file_manager/open_with_browser.h"
10 #include "chrome/grit/generated_resources.h" 11 #include "chrome/grit/generated_resources.h"
11 #include "chromeos/system/statistics_provider.h" 12 #include "chromeos/system/statistics_provider.h"
12 #include "extensions/common/extension_l10n_util.h" 13 #include "extensions/common/extension_l10n_util.h"
13 #include "ui/base/l10n/l10n_util.h" 14 #include "ui/base/l10n/l10n_util.h"
14 #include "ui/base/webui/web_ui_util.h" 15 #include "ui/base/webui/web_ui_util.h"
15 #include "ui/strings/grit/app_locale_settings.h" 16 #include "ui/strings/grit/app_locale_settings.h"
16 17
17 namespace { 18 namespace {
18 19
(...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after
535 "GOOGLE_DRIVE_ERROR_HELP_URL", 536 "GOOGLE_DRIVE_ERROR_HELP_URL",
536 base::StringPrintf(kHelpURLFormat, kGoogleDriveErrorHelpNumber)); 537 base::StringPrintf(kHelpURLFormat, kGoogleDriveErrorHelpNumber));
537 dict->SetString("GOOGLE_DRIVE_HELP_URL", kGoogleDriveHelpUrl); 538 dict->SetString("GOOGLE_DRIVE_HELP_URL", kGoogleDriveHelpUrl);
538 dict->SetString("GOOGLE_DRIVE_OVERVIEW_URL", kGoogleDriveOverviewUrl); 539 dict->SetString("GOOGLE_DRIVE_OVERVIEW_URL", kGoogleDriveOverviewUrl);
539 dict->SetString("GOOGLE_DRIVE_REDEEM_URL", kGoogleDriveRedeemUrl); 540 dict->SetString("GOOGLE_DRIVE_REDEEM_URL", kGoogleDriveRedeemUrl);
540 dict->SetString("GOOGLE_DRIVE_ROOT_URL", kGoogleDriveRootUrl); 541 dict->SetString("GOOGLE_DRIVE_ROOT_URL", kGoogleDriveRootUrl);
541 dict->SetString( 542 dict->SetString(
542 "NO_ACTION_FOR_FILE_URL", 543 "NO_ACTION_FOR_FILE_URL",
543 base::StringPrintf(kHelpURLFormat, kNoActionForFileHelpNumber)); 544 base::StringPrintf(kHelpURLFormat, kNoActionForFileHelpNumber));
544 dict->SetString("UI_LOCALE", extension_l10n_util::CurrentLocaleOrDefault()); 545 dict->SetString("UI_LOCALE", extension_l10n_util::CurrentLocaleOrDefault());
545 webui::SetFontAndTextDirection(dict); 546
547 const std::string& app_locale = g_browser_process->GetApplicationLocale();
548 webui::SetLoadTimeDataDefaults(app_locale, dict);
549
546 return true; 550 return true;
547 } 551 }
548 552
549 } // namespace extensions 553 } // namespace extensions
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/extensions/first_run_private_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698