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

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

Issue 2541063002: Revert of Remove about:srcdoc url conversion. (Closed)
Patch Set: 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) {
169 load_start_time_ = base::Time::Now(); 170 load_start_time_ = base::Time::Now();
170 } 171 }
171 172
172 void MdSettingsUI::DocumentLoadedInFrame( 173 void MdSettingsUI::DocumentLoadedInFrame(
173 content::RenderFrameHost* render_frame_host) { 174 content::RenderFrameHost* render_frame_host) {
174 UMA_HISTOGRAM_TIMES("Settings.LoadDocumentTime.MD", 175 UMA_HISTOGRAM_TIMES("Settings.LoadDocumentTime.MD",
175 base::Time::Now() - load_start_time_); 176 base::Time::Now() - load_start_time_);
176 } 177 }
177 178
178 void MdSettingsUI::DocumentOnLoadCompletedInMainFrame() { 179 void MdSettingsUI::DocumentOnLoadCompletedInMainFrame() {
179 UMA_HISTOGRAM_TIMES("Settings.LoadCompletedTime.MD", 180 UMA_HISTOGRAM_TIMES("Settings.LoadCompletedTime.MD",
180 base::Time::Now() - load_start_time_); 181 base::Time::Now() - load_start_time_);
181 } 182 }
182 183
183 } // namespace settings 184 } // 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