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

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

Issue 7461136: Convert HtmlDialogUIDelegate::GetDialogTitle() to string16. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more fixes Created 9 years, 4 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/ui/gtk/html_dialog_gtk.cc ('k') | chrome/browser/ui/views/html_dialog_view.h » ('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/ui/login/login_prompt.h" 5 #include "chrome/browser/ui/login/login_prompt.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/json/json_reader.h" 9 #include "base/json/json_reader.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 closed_(false), 79 closed_(false),
80 has_autofill_(false), 80 has_autofill_(false),
81 ready_for_autofill_(false) { 81 ready_for_autofill_(false) {
82 } 82 }
83 83
84 // HtmlDialogUIDelegate methods: 84 // HtmlDialogUIDelegate methods:
85 virtual bool IsDialogModal() const OVERRIDE { 85 virtual bool IsDialogModal() const OVERRIDE {
86 return true; 86 return true;
87 } 87 }
88 88
89 virtual std::wstring GetDialogTitle() const OVERRIDE { 89 virtual string16 GetDialogTitle() const OVERRIDE {
90 return UTF16ToWide(l10n_util::GetStringUTF16(IDS_LOGIN_DIALOG_TITLE)); 90 return l10n_util::GetStringUTF16(IDS_LOGIN_DIALOG_TITLE);
91 } 91 }
92 92
93 virtual GURL GetDialogContentURL() const OVERRIDE { 93 virtual GURL GetDialogContentURL() const OVERRIDE {
94 return GURL(chrome::kChromeUIHttpAuthURL); 94 return GURL(chrome::kChromeUIHttpAuthURL);
95 } 95 }
96 96
97 virtual void GetWebUIMessageHandlers( 97 virtual void GetWebUIMessageHandlers(
98 std::vector<WebUIMessageHandler*>* handlers) const OVERRIDE { 98 std::vector<WebUIMessageHandler*>* handlers) const OVERRIDE {
99 const WebUIMessageHandler* handler = this; 99 const WebUIMessageHandler* handler = this;
100 handlers->push_back(const_cast<WebUIMessageHandler*>(handler)); 100 handlers->push_back(const_cast<WebUIMessageHandler*>(handler));
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 SetDialog(dialog); 250 SetDialog(dialog);
251 251
252 NotifyAuthNeeded(); 252 NotifyAuthNeeded();
253 } 253 }
254 254
255 // static 255 // static
256 LoginHandler* LoginHandler::Create(net::AuthChallengeInfo* auth_info, 256 LoginHandler* LoginHandler::Create(net::AuthChallengeInfo* auth_info,
257 net::URLRequest* request) { 257 net::URLRequest* request) {
258 return new LoginHandlerHtml(auth_info, request); 258 return new LoginHandlerHtml(auth_info, request);
259 } 259 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/html_dialog_gtk.cc ('k') | chrome/browser/ui/views/html_dialog_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698