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

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

Issue 2494633004: Remove about:srcdoc url conversion. (Closed)
Patch Set: Rebase Created 4 years 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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 158
159 void MdSettingsUI::AddSettingsPageUIHandler(SettingsPageUIHandler* handler) { 159 void MdSettingsUI::AddSettingsPageUIHandler(SettingsPageUIHandler* handler) {
160 DCHECK(handler); 160 DCHECK(handler);
161 handlers_.insert(handler); 161 handlers_.insert(handler);
162 web_ui()->AddMessageHandler(handler); // |handler| is owned by |web_ui()|. 162 web_ui()->AddMessageHandler(handler); // |handler| is owned by |web_ui()|.
163 } 163 }
164 164
165 void MdSettingsUI::DidStartProvisionalLoadForFrame( 165 void MdSettingsUI::DidStartProvisionalLoadForFrame(
166 content::RenderFrameHost* render_frame_host, 166 content::RenderFrameHost* render_frame_host,
167 const GURL& validated_url, 167 const GURL& validated_url,
168 bool is_error_page, 168 bool is_error_page) {
169 bool is_iframe_srcdoc) {
170 load_start_time_ = base::Time::Now(); 169 load_start_time_ = base::Time::Now();
171 } 170 }
172 171
173 void MdSettingsUI::DocumentLoadedInFrame( 172 void MdSettingsUI::DocumentLoadedInFrame(
174 content::RenderFrameHost* render_frame_host) { 173 content::RenderFrameHost* render_frame_host) {
175 UMA_HISTOGRAM_TIMES("Settings.LoadDocumentTime.MD", 174 UMA_HISTOGRAM_TIMES("Settings.LoadDocumentTime.MD",
176 base::Time::Now() - load_start_time_); 175 base::Time::Now() - load_start_time_);
177 } 176 }
178 177
179 void MdSettingsUI::DocumentOnLoadCompletedInMainFrame() { 178 void MdSettingsUI::DocumentOnLoadCompletedInMainFrame() {
180 UMA_HISTOGRAM_TIMES("Settings.LoadCompletedTime.MD", 179 UMA_HISTOGRAM_TIMES("Settings.LoadCompletedTime.MD",
181 base::Time::Now() - load_start_time_); 180 base::Time::Now() - load_start_time_);
182 } 181 }
183 182
184 } // namespace settings 183 } // namespace settings
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/settings/md_settings_ui.h ('k') | chrome/test/data/extensions/api_test/executescript/frame_id/test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698