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

Side by Side Diff: chrome/browser/ui/webui/chromeos/login/enterprise_oauth_enrollment_screen_handler.cc

Issue 10694099: Replace the link to opt-out of auto-enrollment with a keyboard shortcut. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/resources/chromeos/login/oobe_screen_oauth_enrollment.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/ui/webui/chromeos/login/enterprise_oauth_enrollment_scr een_handler.h" 5 #include "chrome/browser/ui/webui/chromeos/login/enterprise_oauth_enrollment_scr een_handler.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 localized_strings->SetString( 282 localized_strings->SetString(
283 "oauthEnrollExplain", 283 "oauthEnrollExplain",
284 l10n_util::GetStringUTF16(IDS_ENTERPRISE_ENROLLMENT_EXPLAIN)); 284 l10n_util::GetStringUTF16(IDS_ENTERPRISE_ENROLLMENT_EXPLAIN));
285 localized_strings->SetString( 285 localized_strings->SetString(
286 "oauthEnrollExplainLink", 286 "oauthEnrollExplainLink",
287 l10n_util::GetStringUTF16(IDS_ENTERPRISE_ENROLLMENT_EXPLAIN_LINK)); 287 l10n_util::GetStringUTF16(IDS_ENTERPRISE_ENROLLMENT_EXPLAIN_LINK));
288 localized_strings->SetString( 288 localized_strings->SetString(
289 "oauthEnrollExplainButton", 289 "oauthEnrollExplainButton",
290 l10n_util::GetStringUTF16(IDS_ENTERPRISE_ENROLLMENT_EXPLAIN_BUTTON)); 290 l10n_util::GetStringUTF16(IDS_ENTERPRISE_ENROLLMENT_EXPLAIN_BUTTON));
291 localized_strings->SetString( 291 localized_strings->SetString(
292 "oauthEnrollCancelAutoEnrollment",
293 l10n_util::GetStringUTF16(IDS_ENTERPRISE_ENROLLMENT_CANCEL_AUTO));
294 localized_strings->SetString(
295 "oauthEnrollCancelAutoEnrollmentReally", 292 "oauthEnrollCancelAutoEnrollmentReally",
296 l10n_util::GetStringUTF16(IDS_ENTERPRISE_ENROLLMENT_CANCEL_AUTO_REALLY)); 293 l10n_util::GetStringUTF16(IDS_ENTERPRISE_ENROLLMENT_CANCEL_AUTO_REALLY));
297 localized_strings->SetString( 294 localized_strings->SetString(
298 "oauthEnrollCancelAutoEnrollmentConfirm", 295 "oauthEnrollCancelAutoEnrollmentConfirm",
299 l10n_util::GetStringUTF16(IDS_ENTERPRISE_ENROLLMENT_CANCEL_AUTO_CONFIRM)); 296 l10n_util::GetStringUTF16(IDS_ENTERPRISE_ENROLLMENT_CANCEL_AUTO_CONFIRM));
300 localized_strings->SetString( 297 localized_strings->SetString(
301 "oauthEnrollCancelAutoEnrollmentGoBack", 298 "oauthEnrollCancelAutoEnrollmentGoBack",
302 l10n_util::GetStringUTF16(IDS_ENTERPRISE_ENROLLMENT_CANCEL_AUTO_GO_BACK)); 299 l10n_util::GetStringUTF16(IDS_ENTERPRISE_ENROLLMENT_CANCEL_AUTO_GO_BACK));
303 } 300 }
304 301
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
552 controller_->OnConfirmationClosed(back_to_signin); 549 controller_->OnConfirmationClosed(back_to_signin);
553 } 550 }
554 551
555 void EnterpriseOAuthEnrollmentScreenHandler::UMAFailure(int sample) { 552 void EnterpriseOAuthEnrollmentScreenHandler::UMAFailure(int sample) {
556 if (is_auto_enrollment_) 553 if (is_auto_enrollment_)
557 sample = policy::kMetricEnrollmentAutoFailed; 554 sample = policy::kMetricEnrollmentAutoFailed;
558 UMA(sample); 555 UMA(sample);
559 } 556 }
560 557
561 } // namespace chromeos 558 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/resources/chromeos/login/oobe_screen_oauth_enrollment.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698