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

Side by Side Diff: chrome/browser/dom_ui/new_tab_ui.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
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 "build/build_config.h" 5 #include "build/build_config.h"
6 6
7 #include "chrome/browser/dom_ui/new_tab_ui.h" 7 #include "chrome/browser/dom_ui/new_tab_ui.h"
8 8
9 #include <set> 9 #include <set>
10 10
(...skipping 609 matching lines...) Expand 10 before | Expand all | Expand 10 after
620 int request_id) { 620 int request_id) {
621 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 621 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
622 622
623 if (!path.empty() && path[0] != '#') { 623 if (!path.empty() && path[0] != '#') {
624 // A path under new-tab was requested; it's likely a bad relative 624 // A path under new-tab was requested; it's likely a bad relative
625 // URL from the new tab page, but in any case it's an error. 625 // URL from the new tab page, but in any case it's an error.
626 NOTREACHED(); 626 NOTREACHED();
627 return; 627 return;
628 } 628 }
629 629
630 scoped_refptr<RefCountedBytes> html_bytes = 630 scoped_refptr<RefCountedBytes> html_bytes(
631 profile_->GetNTPResourceCache()->GetNewTabHTML(is_off_the_record); 631 profile_->GetNTPResourceCache()->GetNewTabHTML(is_off_the_record));
632 632
633 SendResponse(request_id, html_bytes); 633 SendResponse(request_id, html_bytes);
634 } 634 }
635 635
636 std::string NewTabUI::NewTabHTMLSource::GetMimeType(const std::string&) const { 636 std::string NewTabUI::NewTabHTMLSource::GetMimeType(const std::string&) const {
637 return "text/html"; 637 return "text/html";
638 } 638 }
OLDNEW
« no previous file with comments | « chrome/browser/dom_ui/fileicon_source.cc ('k') | chrome/browser/extensions/extension_process_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698