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

Side by Side Diff: chrome/browser/browser_about_handler.cc

Issue 4192012: Convert implicit scoped_refptr constructor calls to explicit ones, part 1 (Closed) Base URL: http://git.chromium.org/git/chromium.git
Patch Set: fix presubmit Created 10 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/bookmarks/bookmark_html_writer.cc ('k') | chrome/browser/browser_main.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/browser_about_handler.h" 5 #include "chrome/browser/browser_about_handler.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 return chromeos::CrosLibrary::Get()->GetNetworkLibrary()-> 298 return chromeos::CrosLibrary::Get()->GetNetworkLibrary()->
299 GetHtmlInfo(refresh); 299 GetHtmlInfo(refresh);
300 } 300 }
301 #endif 301 #endif
302 302
303 // AboutDnsHandler bounces the request back to the IO thread to collect 303 // AboutDnsHandler bounces the request back to the IO thread to collect
304 // the DNS information. 304 // the DNS information.
305 class AboutDnsHandler : public base::RefCountedThreadSafe<AboutDnsHandler> { 305 class AboutDnsHandler : public base::RefCountedThreadSafe<AboutDnsHandler> {
306 public: 306 public:
307 static void Start(AboutSource* source, int request_id) { 307 static void Start(AboutSource* source, int request_id) {
308 scoped_refptr<AboutDnsHandler> handler = 308 scoped_refptr<AboutDnsHandler> handler(
309 new AboutDnsHandler(source, request_id); 309 new AboutDnsHandler(source, request_id));
310 handler->StartOnUIThread(); 310 handler->StartOnUIThread();
311 } 311 }
312 312
313 private: 313 private:
314 AboutDnsHandler(AboutSource* source, int request_id) 314 AboutDnsHandler(AboutSource* source, int request_id)
315 : source_(source), 315 : source_(source),
316 request_id_(request_id) { 316 request_id_(request_id) {
317 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 317 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
318 } 318 }
319 319
(...skipping 849 matching lines...) Expand 10 before | Expand all | Expand 10 after
1169 // Run the dialog. This will re-use the existing one if it's already up. 1169 // Run the dialog. This will re-use the existing one if it's already up.
1170 AboutIPCDialog::RunDialog(); 1170 AboutIPCDialog::RunDialog();
1171 return true; 1171 return true;
1172 } 1172 }
1173 #endif 1173 #endif
1174 1174
1175 #endif // OFFICIAL_BUILD 1175 #endif // OFFICIAL_BUILD
1176 1176
1177 return false; 1177 return false;
1178 } 1178 }
OLDNEW
« no previous file with comments | « chrome/browser/bookmarks/bookmark_html_writer.cc ('k') | chrome/browser/browser_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698