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

Side by Side Diff: chrome/browser/remoting/setup_flow_login_step.cc

Issue 6541006: WebUI: Move more files from chrome/browser/dom_ui to chrome/browser/webui. Part 3. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/remoting/setup_flow.h ('k') | chrome/browser/renderer_host/site_instance.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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/remoting/setup_flow_login_step.h" 5 #include "chrome/browser/remoting/setup_flow_login_step.h"
6 6
7 #include "base/json/json_reader.h" 7 #include "base/json/json_reader.h"
8 #include "base/json/json_writer.h" 8 #include "base/json/json_writer.h"
9 #include "base/string_util.h" 9 #include "base/string_util.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
11 #include "base/values.h" 11 #include "base/values.h"
12 #include "chrome/browser/dom_ui/web_ui_util.h"
13 #include "chrome/browser/profiles/profile.h" 12 #include "chrome/browser/profiles/profile.h"
14 #include "chrome/browser/remoting/setup_flow_get_status_step.h" 13 #include "chrome/browser/remoting/setup_flow_get_status_step.h"
14 #include "chrome/browser/webui/web_ui_util.h"
15 #include "chrome/common/net/gaia/gaia_constants.h" 15 #include "chrome/common/net/gaia/gaia_constants.h"
16 #include "chrome/common/net/gaia/google_service_auth_error.h" 16 #include "chrome/common/net/gaia/google_service_auth_error.h"
17 17
18 namespace remoting { 18 namespace remoting {
19 19
20 static const wchar_t kLoginIFrameXPath[] = L"//iframe[@id='login']"; 20 static const wchar_t kLoginIFrameXPath[] = L"//iframe[@id='login']";
21 21
22 SetupFlowLoginStep::SetupFlowLoginStep() { } 22 SetupFlowLoginStep::SetupFlowLoginStep() { }
23 23
24 SetupFlowLoginStep::SetupFlowLoginStep(const string16& error_message) 24 SetupFlowLoginStep::SetupFlowLoginStep(const string16& error_message)
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 146
147 void SetupFlowLoginStep::ShowGaiaFailed(const GoogleServiceAuthError& error) { 147 void SetupFlowLoginStep::ShowGaiaFailed(const GoogleServiceAuthError& error) {
148 DictionaryValue args; 148 DictionaryValue args;
149 args.SetInteger("error", error.state()); 149 args.SetInteger("error", error.state());
150 args.SetBoolean("editable_user", true); 150 args.SetBoolean("editable_user", true);
151 args.SetString("captchaUrl", error.captcha().image_url.spec()); 151 args.SetString("captchaUrl", error.captcha().image_url.spec());
152 ShowGaiaLogin(args); 152 ShowGaiaLogin(args);
153 } 153 }
154 154
155 } // namespace remoting 155 } // namespace remoting
OLDNEW
« no previous file with comments | « chrome/browser/remoting/setup_flow.h ('k') | chrome/browser/renderer_host/site_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698