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

Unified Diff: chrome/browser/ui/login/login_prompt_views.cc

Issue 9704056: Login dialog->views on cros too. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 9 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
« no previous file with comments | « chrome/browser/ui/login/login_prompt_ui.cc ('k') | chrome/browser/ui/login/login_prompt_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/login/login_prompt_views.cc
===================================================================
--- chrome/browser/ui/login/login_prompt_views.cc (revision 126924)
+++ chrome/browser/ui/login/login_prompt_views.cc (working copy)
@@ -24,16 +24,16 @@
using webkit::forms::PasswordForm;
// ----------------------------------------------------------------------------
-// LoginHandlerWin
+// LoginHandlerViews
// This class simply forwards the authentication from the LoginView (on
// the UI thread) to the net::URLRequest (on the I/O thread).
// This class uses ref counting to ensure that it lives until all InvokeLaters
// have been called.
-class LoginHandlerWin : public LoginHandler,
- public views::DialogDelegate {
+class LoginHandlerViews : public LoginHandler,
+ public views::DialogDelegate {
public:
- LoginHandlerWin(net::AuthChallengeInfo* auth_info, net::URLRequest* request)
+ LoginHandlerViews(net::AuthChallengeInfo* auth_info, net::URLRequest* request)
: LoginHandler(auth_info, request),
login_view_(NULL) {
}
@@ -119,7 +119,7 @@
// so natural destruction order means we don't have to worry about
// disassociating the model from the view, because the view will
// be deleted before the password manager.
- login_view_ = new LoginView(UTF16ToWideHack(explanation), manager);
+ login_view_ = new LoginView(explanation, manager);
// Scary thread safety note: This can potentially be called *after* SetAuth
// or CancelAuth (say, if the request was cancelled before the UI thread got
@@ -134,19 +134,19 @@
}
private:
- friend class base::RefCountedThreadSafe<LoginHandlerWin>;
+ friend class base::RefCountedThreadSafe<LoginHandlerViews>;
friend class LoginPrompt;
- ~LoginHandlerWin() {}
+ ~LoginHandlerViews() {}
// The LoginView that contains the user's login information
LoginView* login_view_;
- DISALLOW_COPY_AND_ASSIGN(LoginHandlerWin);
+ DISALLOW_COPY_AND_ASSIGN(LoginHandlerViews);
};
// static
LoginHandler* LoginHandler::Create(net::AuthChallengeInfo* auth_info,
net::URLRequest* request) {
- return new LoginHandlerWin(auth_info, request);
+ return new LoginHandlerViews(auth_info, request);
}
« no previous file with comments | « chrome/browser/ui/login/login_prompt_ui.cc ('k') | chrome/browser/ui/login/login_prompt_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698