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

Side by Side Diff: chrome/browser/ui/webui/settings/md_settings_ui.cc

Issue 2494633004: Remove about:srcdoc url conversion. (Closed)
Patch Set: Addressed comments. Created 4 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/webui/settings/md_settings_ui.h" 5 #include "chrome/browser/ui/webui/settings/md_settings_ui.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 152
153 void MdSettingsUI::AddSettingsPageUIHandler(SettingsPageUIHandler* handler) { 153 void MdSettingsUI::AddSettingsPageUIHandler(SettingsPageUIHandler* handler) {
154 DCHECK(handler); 154 DCHECK(handler);
155 handlers_.insert(handler); 155 handlers_.insert(handler);
156 web_ui()->AddMessageHandler(handler); // |handler| is owned by |web_ui()|. 156 web_ui()->AddMessageHandler(handler); // |handler| is owned by |web_ui()|.
157 } 157 }
158 158
159 void MdSettingsUI::DidStartProvisionalLoadForFrame( 159 void MdSettingsUI::DidStartProvisionalLoadForFrame(
160 content::RenderFrameHost* render_frame_host, 160 content::RenderFrameHost* render_frame_host,
161 const GURL& validated_url, 161 const GURL& validated_url,
162 bool is_error_page, 162 bool is_error_page) {
163 bool is_iframe_srcdoc) {
164 load_start_time_ = base::Time::Now(); 163 load_start_time_ = base::Time::Now();
165 } 164 }
166 165
167 void MdSettingsUI::DocumentLoadedInFrame( 166 void MdSettingsUI::DocumentLoadedInFrame(
168 content::RenderFrameHost* render_frame_host) { 167 content::RenderFrameHost* render_frame_host) {
169 UMA_HISTOGRAM_TIMES("Settings.LoadDocumentTime.MD", 168 UMA_HISTOGRAM_TIMES("Settings.LoadDocumentTime.MD",
170 base::Time::Now() - load_start_time_); 169 base::Time::Now() - load_start_time_);
171 } 170 }
172 171
173 void MdSettingsUI::DocumentOnLoadCompletedInMainFrame() { 172 void MdSettingsUI::DocumentOnLoadCompletedInMainFrame() {
174 UMA_HISTOGRAM_TIMES("Settings.LoadCompletedTime.MD", 173 UMA_HISTOGRAM_TIMES("Settings.LoadCompletedTime.MD",
175 base::Time::Now() - load_start_time_); 174 base::Time::Now() - load_start_time_);
176 } 175 }
177 176
178 } // namespace settings 177 } // namespace settings
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698