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

Unified Diff: chrome/browser/chromeos/login/screens/voice_interaction_value_prop_screen.cc

Issue 2984023002: Rename buttons for voice interaction value prop screen (Closed)
Patch Set: Created 3 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
Index: chrome/browser/chromeos/login/screens/voice_interaction_value_prop_screen.cc
diff --git a/chrome/browser/chromeos/login/screens/voice_interaction_value_prop_screen.cc b/chrome/browser/chromeos/login/screens/voice_interaction_value_prop_screen.cc
index c011d25fec330097389b8a83e9f258df16b029e2..4c417457109804ec17eb32ac417cca1d5a9cff82 100644
--- a/chrome/browser/chromeos/login/screens/voice_interaction_value_prop_screen.cc
+++ b/chrome/browser/chromeos/login/screens/voice_interaction_value_prop_screen.cc
@@ -16,8 +16,8 @@
namespace chromeos {
namespace {
-constexpr const char kUserActionNoThanksPressed[] = "no-thanks-pressed";
-constexpr const char kUserActionContinuePressed[] = "continue-pressed";
+constexpr const char kUserActionSkipPressed[] = "skip-pressed";
+constexpr const char kUserActionNextPressed[] = "next-pressed";
} // namespace
@@ -64,15 +64,15 @@ void VoiceInteractionValuePropScreen::OnViewDestroyed(
void VoiceInteractionValuePropScreen::OnUserAction(
const std::string& action_id) {
- if (action_id == kUserActionNoThanksPressed)
- OnNoThanksPressed();
- else if (action_id == kUserActionContinuePressed)
- OnContinuePressed();
+ if (action_id == kUserActionSkipPressed)
+ OnSkipPressed();
+ else if (action_id == kUserActionNextPressed)
+ OnNextPressed();
else
BaseScreen::OnUserAction(action_id);
}
-void VoiceInteractionValuePropScreen::OnNoThanksPressed() {
+void VoiceInteractionValuePropScreen::OnSkipPressed() {
arc::ArcPaiStarter* pai_starter =
arc::ArcSessionManager::Get()->pai_starter();
if (pai_starter)
@@ -80,7 +80,7 @@ void VoiceInteractionValuePropScreen::OnNoThanksPressed() {
Finish(ScreenExitCode::VOICE_INTERACTION_VALUE_PROP_SKIPPED);
}
-void VoiceInteractionValuePropScreen::OnContinuePressed() {
+void VoiceInteractionValuePropScreen::OnNextPressed() {
// Note! Release lock for PAI will be called at
// ArcVoiceInteractionArcHomeService::OnVoiceInteractionOobeSetupComplete.
ProfileManager::GetActiveUserProfile()->GetPrefs()->SetBoolean(

Powered by Google App Engine
This is Rietveld 408576698