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

Side by Side Diff: chrome/browser/ui/webui/options/options_ui.cc

Issue 8919017: Split UserMetrics into API vs. implementation. Move API to content/public. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Version for commit (merged again). Created 9 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 | 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/ui/webui/options/options_ui.h" 5 #include "chrome/browser/ui/webui/options/options_ui.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 28 matching lines...) Expand all
39 #include "chrome/browser/ui/webui/options/search_engine_manager_handler.h" 39 #include "chrome/browser/ui/webui/options/search_engine_manager_handler.h"
40 #include "chrome/browser/ui/webui/options/stop_syncing_handler.h" 40 #include "chrome/browser/ui/webui/options/stop_syncing_handler.h"
41 #include "chrome/browser/ui/webui/options/web_intents_settings_handler.h" 41 #include "chrome/browser/ui/webui/options/web_intents_settings_handler.h"
42 #include "chrome/browser/ui/webui/theme_source.h" 42 #include "chrome/browser/ui/webui/theme_source.h"
43 #include "chrome/common/jstemplate_builder.h" 43 #include "chrome/common/jstemplate_builder.h"
44 #include "chrome/common/time_format.h" 44 #include "chrome/common/time_format.h"
45 #include "chrome/common/url_constants.h" 45 #include "chrome/common/url_constants.h"
46 #include "content/browser/renderer_host/render_view_host.h" 46 #include "content/browser/renderer_host/render_view_host.h"
47 #include "content/browser/tab_contents/tab_contents.h" 47 #include "content/browser/tab_contents/tab_contents.h"
48 #include "content/browser/tab_contents/tab_contents_delegate.h" 48 #include "content/browser/tab_contents/tab_contents_delegate.h"
49 #include "content/browser/user_metrics.h"
50 #include "content/public/browser/browser_thread.h" 49 #include "content/public/browser/browser_thread.h"
51 #include "content/public/browser/notification_types.h" 50 #include "content/public/browser/notification_types.h"
51 #include "content/public/browser/user_metrics.h"
52 #include "grit/chromium_strings.h" 52 #include "grit/chromium_strings.h"
53 #include "grit/generated_resources.h" 53 #include "grit/generated_resources.h"
54 #include "grit/locale_settings.h" 54 #include "grit/locale_settings.h"
55 #include "grit/options_resources.h" 55 #include "grit/options_resources.h"
56 #include "grit/theme_resources.h" 56 #include "grit/theme_resources.h"
57 #include "grit/theme_resources_standard.h" 57 #include "grit/theme_resources_standard.h"
58 #include "net/base/escape.h" 58 #include "net/base/escape.h"
59 #include "ui/base/resource/resource_bundle.h" 59 #include "ui/base/resource/resource_bundle.h"
60 60
61 #if defined(OS_CHROMEOS) 61 #if defined(OS_CHROMEOS)
(...skipping 13 matching lines...) Expand all
75 #include "chrome/browser/ui/webui/options/chromeos/stats_options_handler.h" 75 #include "chrome/browser/ui/webui/options/chromeos/stats_options_handler.h"
76 #include "chrome/browser/ui/webui/options/chromeos/system_options_handler.h" 76 #include "chrome/browser/ui/webui/options/chromeos/system_options_handler.h"
77 #include "chrome/browser/ui/webui/options/chromeos/user_image_source.h" 77 #include "chrome/browser/ui/webui/options/chromeos/user_image_source.h"
78 #include "chrome/browser/ui/webui/options/chromeos/virtual_keyboard_manager_hand ler.h" 78 #include "chrome/browser/ui/webui/options/chromeos/virtual_keyboard_manager_hand ler.h"
79 #endif 79 #endif
80 80
81 #if defined(USE_NSS) 81 #if defined(USE_NSS)
82 #include "chrome/browser/ui/webui/options/certificate_manager_handler.h" 82 #include "chrome/browser/ui/webui/options/certificate_manager_handler.h"
83 #endif 83 #endif
84 84
85 using content::UserMetricsAction;
86
85 static const char kLocalizedStringsFile[] = "strings.js"; 87 static const char kLocalizedStringsFile[] = "strings.js";
86 static const char kOptionsBundleJsFile[] = "options_bundle.js"; 88 static const char kOptionsBundleJsFile[] = "options_bundle.js";
87 89
88 //////////////////////////////////////////////////////////////////////////////// 90 ////////////////////////////////////////////////////////////////////////////////
89 // 91 //
90 // OptionsUIHTMLSource 92 // OptionsUIHTMLSource
91 // 93 //
92 //////////////////////////////////////////////////////////////////////////////// 94 ////////////////////////////////////////////////////////////////////////////////
93 95
94 class OptionsUIHTMLSource : public ChromeURLDataManager::DataSource { 96 class OptionsUIHTMLSource : public ChromeURLDataManager::DataSource {
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 #if defined(OS_WIN) 362 #if defined(OS_WIN)
361 command_line_string = 363 command_line_string =
362 WideToASCII(CommandLine::ForCurrentProcess()->GetCommandLineString()); 364 WideToASCII(CommandLine::ForCurrentProcess()->GetCommandLineString());
363 #else 365 #else
364 command_line_string = 366 command_line_string =
365 CommandLine::ForCurrentProcess()->GetCommandLineString(); 367 CommandLine::ForCurrentProcess()->GetCommandLineString();
366 #endif 368 #endif
367 369
368 render_view_host->SetWebUIProperty("commandLineString", command_line_string); 370 render_view_host->SetWebUIProperty("commandLineString", command_line_string);
369 } 371 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698