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

Side by Side Diff: chrome/browser/ui/webui/log_web_ui_url.h

Issue 1367343002: Add browser test for WebUI URL logging (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: histogram_tester Created 5 years, 2 months 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
« no previous file with comments | « no previous file | chrome/browser/ui/webui/log_web_ui_url.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CHROME_BROWSER_UI_WEBUI_LOG_WEB_UI_URL_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_LOG_WEB_UI_URL_H_
6 #define CHROME_BROWSER_UI_WEBUI_LOG_WEB_UI_URL_H_ 6 #define CHROME_BROWSER_UI_WEBUI_LOG_WEB_UI_URL_H_
7 7
8 class GURL; 8 class GURL;
9 9
10 namespace webui { 10 namespace webui {
11 11
12 // Name of histogram that WebUI URLs are logged to.
13 extern const char kWebUICreatedForUrl[];
14
12 // Called when WebUI objects are created to get aggregate usage data (i.e. is 15 // Called when WebUI objects are created to get aggregate usage data (i.e. is
13 // chrome://history used more than chrome://help?). Only internal (e.g. 16 // chrome://history used more than chrome://help?). Only internal (e.g.
14 // chrome://) URLs are logged. Returns whether the URL was actually logged. 17 // chrome://) URLs are logged. Returns whether the URL was actually logged.
15 bool LogWebUIUrl(const GURL& web_ui_url); 18 bool LogWebUIUrl(const GURL& web_ui_url);
16 19
17 } // namespace webui 20 } // namespace webui
18 21
19 #endif // CHROME_BROWSER_UI_WEBUI_LOG_WEB_UI_URL_H_ 22 #endif // CHROME_BROWSER_UI_WEBUI_LOG_WEB_UI_URL_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/webui/log_web_ui_url.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698