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

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

Issue 7942004: Consolidate/cleanup event cracking code; single out GdkEvents. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge removal of compact nav. Created 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/chromeos/frame/panel_controller.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 (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/chrome_browser_main.h" 5 #include "chrome/browser/chrome_browser_main.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 #if defined(TOOLKIT_USES_GTK) 184 #if defined(TOOLKIT_USES_GTK)
185 #include "views/widget/native_widget_gtk.h" 185 #include "views/widget/native_widget_gtk.h"
186 #endif 186 #endif
187 #endif 187 #endif
188 188
189 #if defined(TOOLKIT_USES_GTK) 189 #if defined(TOOLKIT_USES_GTK)
190 #include "ui/gfx/gtk_util.h" 190 #include "ui/gfx/gtk_util.h"
191 #endif 191 #endif
192 192
193 #if defined(TOUCH_UI) 193 #if defined(TOUCH_UI)
194 #include "views/touchui/touch_factory.h" 194 #include "ui/base/touch/touch_factory.h"
195 #endif 195 #endif
196 196
197 #if defined(USE_AURA) 197 #if defined(USE_AURA)
198 #include "chrome/browser/ui/views/aura/aura_init.h" 198 #include "chrome/browser/ui/views/aura/aura_init.h"
199 #endif 199 #endif
200 200
201 namespace net { 201 namespace net {
202 class NetLog; 202 class NetLog;
203 } // namespace net 203 } // namespace net
204 204
(...skipping 1541 matching lines...) Expand 10 before | Expand all | Expand 10 after
1746 1746
1747 #if defined(OS_WIN) && !defined(GOOGLE_CHROME_BUILD) 1747 #if defined(OS_WIN) && !defined(GOOGLE_CHROME_BUILD)
1748 if (parsed_command_line().HasSwitch(switches::kDebugPrint)) { 1748 if (parsed_command_line().HasSwitch(switches::kDebugPrint)) {
1749 FilePath path = 1749 FilePath path =
1750 parsed_command_line().GetSwitchValuePath(switches::kDebugPrint); 1750 parsed_command_line().GetSwitchValuePath(switches::kDebugPrint);
1751 printing::PrintedDocument::set_debug_dump_path(path); 1751 printing::PrintedDocument::set_debug_dump_path(path);
1752 } 1752 }
1753 #endif 1753 #endif
1754 1754
1755 #if defined(TOUCH_UI) 1755 #if defined(TOUCH_UI)
1756 views::TouchFactory::GetInstance()->set_keep_mouse_cursor( 1756 ui::TouchFactory::GetInstance()->set_keep_mouse_cursor(
1757 CommandLine::ForCurrentProcess()->HasSwitch(switches::kKeepMouseCursor)); 1757 CommandLine::ForCurrentProcess()->HasSwitch(switches::kKeepMouseCursor));
1758 #endif 1758 #endif
1759 1759
1760 HandleTestParameters(parsed_command_line()); 1760 HandleTestParameters(parsed_command_line());
1761 RecordBreakpadStatusUMA(metrics); 1761 RecordBreakpadStatusUMA(metrics);
1762 about_flags::RecordUMAStatistics(local_state); 1762 about_flags::RecordUMAStatistics(local_state);
1763 LanguageUsageMetrics::RecordAcceptLanguages( 1763 LanguageUsageMetrics::RecordAcceptLanguages(
1764 profile_->GetPrefs()->GetString(prefs::kAcceptLanguages)); 1764 profile_->GetPrefs()->GetString(prefs::kAcceptLanguages));
1765 LanguageUsageMetrics::RecordApplicationLanguage( 1765 LanguageUsageMetrics::RecordApplicationLanguage(
1766 g_browser_process->GetApplicationLocale()); 1766 g_browser_process->GetApplicationLocale());
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
2041 if (env->GetVar(chrome::kPreReadEnvironmentVariable, &pre_read) && 2041 if (env->GetVar(chrome::kPreReadEnvironmentVariable, &pre_read) &&
2042 (pre_read == "0" || pre_read == "1")) { 2042 (pre_read == "0" || pre_read == "1")) {
2043 std::string uma_name(name); 2043 std::string uma_name(name);
2044 uma_name += "_PreRead"; 2044 uma_name += "_PreRead";
2045 uma_name += pre_read == "1" ? "Enabled" : "Disabled"; 2045 uma_name += pre_read == "1" ? "Enabled" : "Disabled";
2046 AddPreReadHistogramTime(uma_name.c_str(), time); 2046 AddPreReadHistogramTime(uma_name.c_str(), time);
2047 } 2047 }
2048 #endif 2048 #endif
2049 #endif 2049 #endif
2050 } 2050 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/frame/panel_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698