OLD | NEW |
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 "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 580 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
591 | 591 |
592 scoped_refptr<RefCountedBytes> html_bytes( | 592 scoped_refptr<RefCountedBytes> html_bytes( |
593 profile_->GetNTPResourceCache()->GetNewTabHTML(is_off_the_record)); | 593 profile_->GetNTPResourceCache()->GetNewTabHTML(is_off_the_record)); |
594 | 594 |
595 SendResponse(request_id, html_bytes); | 595 SendResponse(request_id, html_bytes); |
596 } | 596 } |
597 | 597 |
598 std::string NewTabUI::NewTabHTMLSource::GetMimeType(const std::string&) const { | 598 std::string NewTabUI::NewTabHTMLSource::GetMimeType(const std::string&) const { |
599 return "text/html"; | 599 return "text/html"; |
600 } | 600 } |
| 601 |
| 602 bool NewTabUI::NewTabHTMLSource::ShouldReplaceExistingSource() const { |
| 603 return false; |
| 604 } |
OLD | NEW |