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

Side by Side Diff: chrome/browser/ui/webui/about_ui.cc

Issue 2181493002: Return unique_ptrs from base::ProcessMetrics. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove os_resource_win.* Created 4 years, 4 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/about_ui.h" 5 #include "chrome/browser/ui/webui/about_ui.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
11 #include <string> 11 #include <string>
12 #include <utility> 12 #include <utility>
13 #include <vector> 13 #include <vector>
14 14
15 #include "base/bind.h" 15 #include "base/bind.h"
16 #include "base/bind_helpers.h" 16 #include "base/bind_helpers.h"
17 #include "base/callback.h" 17 #include "base/callback.h"
18 #include "base/command_line.h" 18 #include "base/command_line.h"
19 #include "base/files/file_util.h" 19 #include "base/files/file_util.h"
20 #include "base/format_macros.h" 20 #include "base/format_macros.h"
21 #include "base/i18n/number_formatting.h" 21 #include "base/i18n/number_formatting.h"
22 #include "base/json/json_writer.h" 22 #include "base/json/json_writer.h"
23 #include "base/macros.h" 23 #include "base/macros.h"
24 #include "base/memory/singleton.h" 24 #include "base/memory/singleton.h"
25 #include "base/metrics/statistics_recorder.h" 25 #include "base/metrics/statistics_recorder.h"
26 #include "base/process/process_metrics.h"
26 #include "base/strings/string_number_conversions.h" 27 #include "base/strings/string_number_conversions.h"
27 #include "base/strings/string_piece.h" 28 #include "base/strings/string_piece.h"
28 #include "base/strings/string_split.h" 29 #include "base/strings/string_split.h"
29 #include "base/strings/string_util.h" 30 #include "base/strings/string_util.h"
30 #include "base/strings/stringprintf.h" 31 #include "base/strings/stringprintf.h"
31 #include "base/strings/utf_string_conversions.h" 32 #include "base/strings/utf_string_conversions.h"
32 #include "base/threading/thread.h" 33 #include "base/threading/thread.h"
33 #include "base/values.h" 34 #include "base/values.h"
34 #include "build/build_config.h" 35 #include "build/build_config.h"
35 #include "chrome/browser/about_flags.h" 36 #include "chrome/browser/about_flags.h"
(...skipping 820 matching lines...) Expand 10 before | Expand all | Expand 10 after
856 Profile* profile = Profile::FromWebUI(web_ui); 857 Profile* profile = Profile::FromWebUI(web_ui);
857 858
858 #if defined(ENABLE_THEMES) 859 #if defined(ENABLE_THEMES)
859 // Set up the chrome://theme/ source. 860 // Set up the chrome://theme/ source.
860 ThemeSource* theme = new ThemeSource(profile); 861 ThemeSource* theme = new ThemeSource(profile);
861 content::URLDataSource::Add(profile, theme); 862 content::URLDataSource::Add(profile, theme);
862 #endif 863 #endif
863 864
864 content::URLDataSource::Add(profile, new AboutUIHTMLSource(name, profile)); 865 content::URLDataSource::Add(profile, new AboutUIHTMLSource(name, profile));
865 } 866 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698