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

Unified Diff: chrome/browser/page_load_metrics/browser_page_track_decider.cc

Issue 2699213002: Adding MHTML support into Page Load Metrics (Closed)
Patch Set: Only observe MHTML for previews observer Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/page_load_metrics/browser_page_track_decider.cc
diff --git a/chrome/browser/page_load_metrics/browser_page_track_decider.cc b/chrome/browser/page_load_metrics/browser_page_track_decider.cc
index f78ed42901ecd41e9d8ae6b7da94dbdd5a36e450..6b52b6b0fb0bae2d275e349281c7661619b2e8c7 100644
--- a/chrome/browser/page_load_metrics/browser_page_track_decider.cc
+++ b/chrome/browser/page_load_metrics/browser_page_track_decider.cc
@@ -52,7 +52,8 @@ int BrowserPageTrackDecider::GetHttpStatusCode() {
bool BrowserPageTrackDecider::IsHtmlOrXhtmlPage() {
DCHECK(HasCommitted());
const std::string& mime_type = web_contents_->GetContentsMimeType();
- return mime_type == "text/html" || mime_type == "application/xhtml+xml";
+ return mime_type == "text/html" || mime_type == "application/xhtml+xml" ||
+ mime_type == "multipart/related";
}
} // namespace page_load_metrics

Powered by Google App Engine
This is Rietveld 408576698