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

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

Issue 8965054: Coverity: Initialize member variables. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fixes. Created 9 years 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
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/string16.h"
8 #include "base/utf_string_conversions.h" 8 #include "base/utf_string_conversions.h"
9 #include "chrome/browser/password_manager/password_manager.h" 9 #include "chrome/browser/password_manager/password_manager.h"
10 #include "chrome/browser/tab_contents/tab_util.h" 10 #include "chrome/browser/tab_contents/tab_util.h"
(...skipping 16 matching lines...) Expand all
27 // LoginHandlerWin 27 // LoginHandlerWin
28 28
29 // This class simply forwards the authentication from the LoginView (on 29 // This class simply forwards the authentication from the LoginView (on
30 // the UI thread) to the net::URLRequest (on the I/O thread). 30 // the UI thread) to the net::URLRequest (on the I/O thread).
31 // 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
32 // have been called. 32 // have been called.
33 class LoginHandlerWin : public LoginHandler, 33 class LoginHandlerWin : public LoginHandler,
34 public views::DialogDelegate { 34 public views::DialogDelegate {
35 public: 35 public:
36 LoginHandlerWin(net::AuthChallengeInfo* auth_info, net::URLRequest* request) 36 LoginHandlerWin(net::AuthChallengeInfo* auth_info, net::URLRequest* request)
37 : LoginHandler(auth_info, request) { 37 : LoginHandler(auth_info, request),
38 login_view_(NULL) {
38 } 39 }
39 40
40 // LoginModelObserver implementation. 41 // LoginModelObserver implementation.
41 virtual void OnAutofillDataAvailable(const string16& username, 42 virtual void OnAutofillDataAvailable(const string16& username,
42 const string16& password) OVERRIDE { 43 const string16& password) OVERRIDE {
43 // Nothing to do here since LoginView takes care of autofil for win. 44 // Nothing to do here since LoginView takes care of autofill for win.
44 } 45 }
45 46
46 // views::DialogDelegate methods: 47 // views::DialogDelegate methods:
47 virtual string16 GetDialogButtonLabel( 48 virtual string16 GetDialogButtonLabel(
48 ui::DialogButton button) const OVERRIDE { 49 ui::DialogButton button) const OVERRIDE {
49 if (button == ui::DIALOG_BUTTON_OK) 50 if (button == ui::DIALOG_BUTTON_OK)
50 return l10n_util::GetStringUTF16(IDS_LOGIN_DIALOG_OK_BUTTON_LABEL); 51 return l10n_util::GetStringUTF16(IDS_LOGIN_DIALOG_OK_BUTTON_LABEL);
51 return DialogDelegate::GetDialogButtonLabel(button); 52 return DialogDelegate::GetDialogButtonLabel(button);
52 } 53 }
53 54
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 LoginView* login_view_; 143 LoginView* login_view_;
143 144
144 DISALLOW_COPY_AND_ASSIGN(LoginHandlerWin); 145 DISALLOW_COPY_AND_ASSIGN(LoginHandlerWin);
145 }; 146 };
146 147
147 // static 148 // static
148 LoginHandler* LoginHandler::Create(net::AuthChallengeInfo* auth_info, 149 LoginHandler* LoginHandler::Create(net::AuthChallengeInfo* auth_info,
149 net::URLRequest* request) { 150 net::URLRequest* request) {
150 return new LoginHandlerWin(auth_info, request); 151 return new LoginHandlerWin(auth_info, request);
151 } 152 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_tts_api_win.cc ('k') | chrome/browser/ui/views/bookmarks/bookmark_menu_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698