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

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

Issue 29263007: linux and chromeos: Turn on -Wunused-const-variable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 7 years, 2 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
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/enrollment_screen_handler.h" 5 #include "chrome/browser/ui/webui/chromeos/login/enrollment_screen_handler.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 19 matching lines...) Expand all
30 namespace { 30 namespace {
31 31
32 const char kJsScreenPath[] = "login.OAuthEnrollmentScreen"; 32 const char kJsScreenPath[] = "login.OAuthEnrollmentScreen";
33 33
34 // Start page of GAIA authentication extension. 34 // Start page of GAIA authentication extension.
35 const char kGaiaExtStartPage[] = 35 const char kGaiaExtStartPage[] =
36 "chrome-extension://mfffpogegjflfpflabcdkioaeobkgjik/main.html"; 36 "chrome-extension://mfffpogegjflfpflabcdkioaeobkgjik/main.html";
37 37
38 // Enrollment step names. 38 // Enrollment step names.
39 const char kEnrollmentStepSignin[] = "signin"; 39 const char kEnrollmentStepSignin[] = "signin";
40 const char kEnrollmentStepWorking[] = "working";
41 const char kEnrollmentStepError[] = "error";
42 const char kEnrollmentStepSuccess[] = "success"; 40 const char kEnrollmentStepSuccess[] = "success";
43 41
44 } // namespace 42 } // namespace
45 43
46 namespace chromeos { 44 namespace chromeos {
47 45
48 // EnrollmentScreenHandler::TokenRevoker ------------------------ 46 // EnrollmentScreenHandler::TokenRevoker ------------------------
49 47
50 // A helper class that takes care of asynchronously revoking a given token. 48 // A helper class that takes care of asynchronously revoking a given token.
51 class EnrollmentScreenHandler::TokenRevoker 49 class EnrollmentScreenHandler::TokenRevoker
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
412 DictionaryValue screen_data; 410 DictionaryValue screen_data;
413 screen_data.SetString("signin_url", kGaiaExtStartPage); 411 screen_data.SetString("signin_url", kGaiaExtStartPage);
414 screen_data.SetString("gaiaUrl", GaiaUrls::GetInstance()->gaia_url().spec()); 412 screen_data.SetString("gaiaUrl", GaiaUrls::GetInstance()->gaia_url().spec());
415 screen_data.SetBoolean("is_auto_enrollment", is_auto_enrollment_); 413 screen_data.SetBoolean("is_auto_enrollment", is_auto_enrollment_);
416 screen_data.SetBoolean("prevent_cancellation", !can_exit_enrollment_); 414 screen_data.SetBoolean("prevent_cancellation", !can_exit_enrollment_);
417 415
418 ShowScreen(OobeUI::kScreenOobeEnrollment, &screen_data); 416 ShowScreen(OobeUI::kScreenOobeEnrollment, &screen_data);
419 } 417 }
420 418
421 } // namespace chromeos 419 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698