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

Unified Diff: ash/common/system/chromeos/palette/tools/capture_region_action.cc

Issue 2273273003: Update strings for ash palette and rename options/settings files. (Closed)
Patch Set: A few more string changes Created 4 years, 4 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
Index: ash/common/system/chromeos/palette/tools/capture_region_action.cc
diff --git a/ash/common/system/chromeos/palette/tools/capture_region_action.cc b/ash/common/system/chromeos/palette/tools/capture_region_action.cc
index 51a7c75890dc04ca260e28559ce24336375c9e2f..fdf7c72e71944498a4cf7b51fb1b057219543dfb 100644
--- a/ash/common/system/chromeos/palette/tools/capture_region_action.cc
+++ b/ash/common/system/chromeos/palette/tools/capture_region_action.cc
@@ -10,7 +10,6 @@
#include "ash/common/system/toast/toast_data.h"
#include "ash/common/system/toast/toast_manager.h"
#include "ash/common/wm_shell.h"
-#include "base/strings/utf_string_conversions.h"
#include "grit/ash_strings.h"
#include "ui/base/l10n/l10n_util.h"
@@ -21,9 +20,6 @@ namespace {
const char kToastId[] = "palette_capture_region";
const int kToastDurationMs = 2500;
-// TODO(jdufault): Localize toast message. See crbug.com/634558.
-const char kToastMessage[] = "Select a region";
-
} // namespace
CaptureRegionAction::CaptureRegionAction(Delegate* delegate)
@@ -42,8 +38,9 @@ PaletteToolId CaptureRegionAction::GetToolId() const {
void CaptureRegionAction::OnEnable() {
CommonPaletteTool::OnEnable();
- ToastData toast(kToastId, base::ASCIIToUTF16(kToastMessage), kToastDurationMs,
- base::string16());
+ ToastData toast(kToastId, l10n_util::GetStringUTF16(
+ IDS_ASH_STYLUS_TOOLS_CAPTURE_REGION_TOAST),
+ kToastDurationMs, base::string16());
ash::WmShell::Get()->toast_manager()->Show(toast);
WmShell::Get()->palette_delegate()->TakePartialScreenshot();
@@ -53,7 +50,7 @@ void CaptureRegionAction::OnEnable() {
views::View* CaptureRegionAction::CreateView() {
return CreateDefaultView(
- l10n_util::GetStringUTF16(IDS_ASH_PALETTE_CAPTURE_REGION_ACTION));
+ l10n_util::GetStringUTF16(IDS_ASH_STYLUS_TOOLS_CAPTURE_REGION_ACTION));
}
gfx::VectorIconId CaptureRegionAction::GetPaletteIconId() {
« no previous file with comments | « ash/common/system/chromeos/palette/palette_tray.cc ('k') | ash/common/system/chromeos/palette/tools/capture_screen_action.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698