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

Side by Side Diff: chrome/browser/ui/login/login_prompt_win.cc

Issue 8413022: wstring cleanup in browser/ui/login (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: better Created 9 years, 1 month 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/ui/login/login_prompt_uitest.cc ('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) 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/ui/login/login_prompt.h" 5 #include "chrome/browser/ui/login/login_prompt.h"
6 6
7 #include "base/string16.h"
7 #include "base/utf_string_conversions.h" 8 #include "base/utf_string_conversions.h"
8 #include "chrome/browser/password_manager/password_manager.h" 9 #include "chrome/browser/password_manager/password_manager.h"
9 #include "chrome/browser/tab_contents/tab_util.h" 10 #include "chrome/browser/tab_contents/tab_util.h"
10 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" 11 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
11 #include "chrome/browser/ui/views/constrained_window_views.h" 12 #include "chrome/browser/ui/views/constrained_window_views.h"
12 #include "chrome/browser/ui/views/login_view.h" 13 #include "chrome/browser/ui/views/login_view.h"
13 #include "content/browser/renderer_host/render_process_host.h" 14 #include "content/browser/renderer_host/render_process_host.h"
14 #include "content/browser/renderer_host/render_view_host.h" 15 #include "content/browser/renderer_host/render_view_host.h"
15 #include "content/browser/renderer_host/resource_dispatcher_host.h" 16 #include "content/browser/renderer_host/resource_dispatcher_host.h"
16 #include "content/browser/tab_contents/tab_contents.h" 17 #include "content/browser/tab_contents/tab_contents.h"
(...skipping 13 matching lines...) Expand all
30 // This class uses ref counting to ensure that it lives until all InvokeLaters 31 // This class uses ref counting to ensure that it lives until all InvokeLaters
31 // have been called. 32 // have been called.
32 class LoginHandlerWin : public LoginHandler, 33 class LoginHandlerWin : public LoginHandler,
33 public views::DialogDelegate { 34 public views::DialogDelegate {
34 public: 35 public:
35 LoginHandlerWin(net::AuthChallengeInfo* auth_info, net::URLRequest* request) 36 LoginHandlerWin(net::AuthChallengeInfo* auth_info, net::URLRequest* request)
36 : LoginHandler(auth_info, request) { 37 : LoginHandler(auth_info, request) {
37 } 38 }
38 39
39 // LoginModelObserver implementation. 40 // LoginModelObserver implementation.
40 virtual void OnAutofillDataAvailable(const std::wstring& username, 41 virtual void OnAutofillDataAvailable(const string16& username,
41 const std::wstring& password) OVERRIDE { 42 const string16& password) OVERRIDE {
42 // Nothing to do here since LoginView takes care of autofil for win. 43 // Nothing to do here since LoginView takes care of autofil for win.
43 } 44 }
44 45
45 // views::DialogDelegate methods: 46 // views::DialogDelegate methods:
46 virtual string16 GetDialogButtonLabel( 47 virtual string16 GetDialogButtonLabel(
47 ui::MessageBoxFlags::DialogButton button) const OVERRIDE { 48 ui::MessageBoxFlags::DialogButton button) const OVERRIDE {
48 if (button == ui::MessageBoxFlags::DIALOGBUTTON_OK) 49 if (button == ui::MessageBoxFlags::DIALOGBUTTON_OK)
49 return l10n_util::GetStringUTF16(IDS_LOGIN_DIALOG_OK_BUTTON_LABEL); 50 return l10n_util::GetStringUTF16(IDS_LOGIN_DIALOG_OK_BUTTON_LABEL);
50 return DialogDelegate::GetDialogButtonLabel(button); 51 return DialogDelegate::GetDialogButtonLabel(button);
51 } 52 }
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 LoginView* login_view_; 142 LoginView* login_view_;
142 143
143 DISALLOW_COPY_AND_ASSIGN(LoginHandlerWin); 144 DISALLOW_COPY_AND_ASSIGN(LoginHandlerWin);
144 }; 145 };
145 146
146 // static 147 // static
147 LoginHandler* LoginHandler::Create(net::AuthChallengeInfo* auth_info, 148 LoginHandler* LoginHandler::Create(net::AuthChallengeInfo* auth_info,
148 net::URLRequest* request) { 149 net::URLRequest* request) {
149 return new LoginHandlerWin(auth_info, request); 150 return new LoginHandlerWin(auth_info, request);
150 } 151 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/login/login_prompt_uitest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698