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

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 (@nasko). 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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 154
155 void MdSettingsUI::AddSettingsPageUIHandler(SettingsPageUIHandler* handler) { 155 void MdSettingsUI::AddSettingsPageUIHandler(SettingsPageUIHandler* handler) {
156 DCHECK(handler); 156 DCHECK(handler);
157 handlers_.insert(handler); 157 handlers_.insert(handler);
158 web_ui()->AddMessageHandler(handler); // |handler| is owned by |web_ui()|. 158 web_ui()->AddMessageHandler(handler); // |handler| is owned by |web_ui()|.
159 } 159 }
160 160
161 void MdSettingsUI::DidStartProvisionalLoadForFrame( 161 void MdSettingsUI::DidStartProvisionalLoadForFrame(
162 content::RenderFrameHost* render_frame_host, 162 content::RenderFrameHost* render_frame_host,
163 const GURL& validated_url, 163 const GURL& validated_url,
164 bool is_error_page, 164 bool is_error_page) {
165 bool is_iframe_srcdoc) {
166 load_start_time_ = base::Time::Now(); 165 load_start_time_ = base::Time::Now();
167 } 166 }
168 167
169 void MdSettingsUI::DocumentLoadedInFrame( 168 void MdSettingsUI::DocumentLoadedInFrame(
170 content::RenderFrameHost* render_frame_host) { 169 content::RenderFrameHost* render_frame_host) {
171 UMA_HISTOGRAM_TIMES("Settings.LoadDocumentTime.MD", 170 UMA_HISTOGRAM_TIMES("Settings.LoadDocumentTime.MD",
172 base::Time::Now() - load_start_time_); 171 base::Time::Now() - load_start_time_);
173 } 172 }
174 173
175 void MdSettingsUI::DocumentOnLoadCompletedInMainFrame() { 174 void MdSettingsUI::DocumentOnLoadCompletedInMainFrame() {
176 UMA_HISTOGRAM_TIMES("Settings.LoadCompletedTime.MD", 175 UMA_HISTOGRAM_TIMES("Settings.LoadCompletedTime.MD",
177 base::Time::Now() - load_start_time_); 176 base::Time::Now() - load_start_time_);
178 } 177 }
179 178
180 } // namespace settings 179 } // namespace settings
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698