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

Side by Side Diff: chrome/browser/browser_about_handler.cc

Issue 8413009: Changes to upload tracked_objects data from all renderer (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/browser_about_handler.h" 5 #include "chrome/browser/browser_about_handler.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 14 matching lines...) Expand all
25 #include "base/stringprintf.h" 25 #include "base/stringprintf.h"
26 #include "base/threading/thread.h" 26 #include "base/threading/thread.h"
27 #include "base/tracked_objects.h" 27 #include "base/tracked_objects.h"
28 #include "base/utf_string_conversions.h" 28 #include "base/utf_string_conversions.h"
29 #include "base/values.h" 29 #include "base/values.h"
30 #include "chrome/browser/about_flags.h" 30 #include "chrome/browser/about_flags.h"
31 #include "chrome/browser/browser_process.h" 31 #include "chrome/browser/browser_process.h"
32 #include "chrome/browser/defaults.h" 32 #include "chrome/browser/defaults.h"
33 #include "chrome/browser/memory_details.h" 33 #include "chrome/browser/memory_details.h"
34 #include "chrome/browser/metrics/histogram_synchronizer.h" 34 #include "chrome/browser/metrics/histogram_synchronizer.h"
35 #include "chrome/browser/metrics/tracking_synchronizer.h"
35 #include "chrome/browser/net/predictor.h" 36 #include "chrome/browser/net/predictor.h"
36 #include "chrome/browser/net/url_fixer_upper.h" 37 #include "chrome/browser/net/url_fixer_upper.h"
37 #include "chrome/browser/plugin_prefs.h" 38 #include "chrome/browser/plugin_prefs.h"
38 #include "chrome/browser/profiles/profile.h" 39 #include "chrome/browser/profiles/profile.h"
39 #include "chrome/browser/profiles/profile_manager.h" 40 #include "chrome/browser/profiles/profile_manager.h"
40 #include "chrome/browser/ui/browser_dialogs.h" 41 #include "chrome/browser/ui/browser_dialogs.h"
41 #include "chrome/browser/ui/webui/chrome_url_data_manager.h" 42 #include "chrome/browser/ui/webui/chrome_url_data_manager.h"
42 #include "chrome/common/about_handler.h" 43 #include "chrome/common/about_handler.h"
43 #include "chrome/common/chrome_paths.h" 44 #include "chrome/common/chrome_paths.h"
44 #include "chrome/common/chrome_version_info.h" 45 #include "chrome/common/chrome_version_info.h"
(...skipping 847 matching lines...) Expand 10 before | Expand all | Expand 10 after
892 static std::string AboutTracking(const std::string& query) { 893 static std::string AboutTracking(const std::string& query) {
893 std::string unescaped_title("About Tracking"); 894 std::string unescaped_title("About Tracking");
894 if (!query.empty()) { 895 if (!query.empty()) {
895 unescaped_title += " - "; 896 unescaped_title += " - ";
896 unescaped_title += net::UnescapeURLComponent(query, UnescapeRule::NORMAL); 897 unescaped_title += net::UnescapeURLComponent(query, UnescapeRule::NORMAL);
897 } 898 }
898 std::string data; 899 std::string data;
899 AppendHeader(&data, 0, unescaped_title); 900 AppendHeader(&data, 0, unescaped_title);
900 AppendBody(&data); 901 AppendBody(&data);
901 tracked_objects::ThreadData::WriteHTML(query, &data); 902 tracked_objects::ThreadData::WriteHTML(query, &data);
903 chrome_browser_metrics::TrackingSynchronizer::FetchTrackingDataSynchronously(
jar (doing other things) 2011/10/30 08:04:19 I'm assuming this is here just to help with debugg
ramant (doing other things) 2011/11/01 00:52:15 Deleted this file from change set.
904 &data);
902 AppendFooter(&data); 905 AppendFooter(&data);
903 return data; 906 return data;
904 } 907 }
905 #endif // TRACK_ALL_TASK_OBJECTS 908 #endif // TRACK_ALL_TASK_OBJECTS
906 909
907 // Handler for filling in the "about:stats" page, as called by the browser's 910 // Handler for filling in the "about:stats" page, as called by the browser's
908 // About handler processing. 911 // About handler processing.
909 // |query| is roughly the query string of the about:stats URL. 912 // |query| is roughly the query string of the about:stats URL.
910 // Returns a string containing the HTML to render for the about:stats page. 913 // Returns a string containing the HTML to render for the about:stats page.
911 // Conditional Output: 914 // Conditional Output:
(...skipping 724 matching lines...) Expand 10 before | Expand all | Expand 10 after
1636 return false; 1639 return false;
1637 } 1640 }
1638 1641
1639 std::vector<std::string> ChromePaths() { 1642 std::vector<std::string> ChromePaths() {
1640 std::vector<std::string> paths; 1643 std::vector<std::string> paths;
1641 paths.reserve(arraysize(kChromePaths)); 1644 paths.reserve(arraysize(kChromePaths));
1642 for (size_t i = 0; i < arraysize(kChromePaths); i++) 1645 for (size_t i = 0; i < arraysize(kChromePaths); i++)
1643 paths.push_back(kChromePaths[i]); 1646 paths.push_back(kChromePaths[i]);
1644 return paths; 1647 return paths;
1645 } 1648 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chrome_browser_main.h » ('j') | chrome/browser/metrics/tracking_synchronizer.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698