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

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

Issue 2534393003: (Reland) 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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 165
166 void MdSettingsUI::AddSettingsPageUIHandler(SettingsPageUIHandler* handler) { 166 void MdSettingsUI::AddSettingsPageUIHandler(SettingsPageUIHandler* handler) {
167 DCHECK(handler); 167 DCHECK(handler);
168 handlers_.insert(handler); 168 handlers_.insert(handler);
169 web_ui()->AddMessageHandler(handler); // |handler| is owned by |web_ui()|. 169 web_ui()->AddMessageHandler(handler); // |handler| is owned by |web_ui()|.
170 } 170 }
171 171
172 void MdSettingsUI::DidStartProvisionalLoadForFrame( 172 void MdSettingsUI::DidStartProvisionalLoadForFrame(
173 content::RenderFrameHost* render_frame_host, 173 content::RenderFrameHost* render_frame_host,
174 const GURL& validated_url, 174 const GURL& validated_url,
175 bool is_error_page, 175 bool is_error_page) {
176 bool is_iframe_srcdoc) {
177 load_start_time_ = base::Time::Now(); 176 load_start_time_ = base::Time::Now();
178 } 177 }
179 178
180 void MdSettingsUI::DocumentLoadedInFrame( 179 void MdSettingsUI::DocumentLoadedInFrame(
181 content::RenderFrameHost* render_frame_host) { 180 content::RenderFrameHost* render_frame_host) {
182 UMA_HISTOGRAM_TIMES("Settings.LoadDocumentTime.MD", 181 UMA_HISTOGRAM_TIMES("Settings.LoadDocumentTime.MD",
183 base::Time::Now() - load_start_time_); 182 base::Time::Now() - load_start_time_);
184 } 183 }
185 184
186 void MdSettingsUI::DocumentOnLoadCompletedInMainFrame() { 185 void MdSettingsUI::DocumentOnLoadCompletedInMainFrame() {
187 UMA_HISTOGRAM_TIMES("Settings.LoadCompletedTime.MD", 186 UMA_HISTOGRAM_TIMES("Settings.LoadCompletedTime.MD",
188 base::Time::Now() - load_start_time_); 187 base::Time::Now() - load_start_time_);
189 } 188 }
190 189
191 } // namespace settings 190 } // 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