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

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

Issue 150171: Convert menu strings to UTF16, fix some views-GTK build errors. (Closed)
Patch Set: Created 11 years, 5 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) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 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 "build/build_config.h" 5 #include "build/build_config.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "app/l10n_util.h" 9 #include "app/l10n_util.h"
10 #include "app/resource_bundle.h" 10 #include "app/resource_bundle.h"
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 #include "base/registry.h" 85 #include "base/registry.h"
86 #include "base/win_util.h" 86 #include "base/win_util.h"
87 #include "chrome/browser/browser.h" 87 #include "chrome/browser/browser.h"
88 #include "chrome/browser/browser_trial.h" 88 #include "chrome/browser/browser_trial.h"
89 #include "chrome/browser/jankometer.h" 89 #include "chrome/browser/jankometer.h"
90 #include "chrome/browser/metrics/user_metrics.h" 90 #include "chrome/browser/metrics/user_metrics.h"
91 #include "chrome/browser/net/url_fixer_upper.h" 91 #include "chrome/browser/net/url_fixer_upper.h"
92 #include "chrome/browser/printing/print_job_manager.h" 92 #include "chrome/browser/printing/print_job_manager.h"
93 #include "chrome/browser/profile.h" 93 #include "chrome/browser/profile.h"
94 #include "chrome/browser/rlz/rlz.h" 94 #include "chrome/browser/rlz/rlz.h"
95 #include "chrome/browser/views/chrome_views_delegate.h"
96 #include "chrome/browser/views/user_data_dir_dialog.h" 95 #include "chrome/browser/views/user_data_dir_dialog.h"
97 #include "chrome/common/env_vars.h" 96 #include "chrome/common/env_vars.h"
98 #include "chrome/installer/util/helper.h" 97 #include "chrome/installer/util/helper.h"
99 #include "chrome/installer/util/install_util.h" 98 #include "chrome/installer/util/install_util.h"
100 #include "chrome/installer/util/shell_util.h" 99 #include "chrome/installer/util/shell_util.h"
101 #include "chrome/installer/util/version.h" 100 #include "chrome/installer/util/version.h"
102 #include "net/base/net_util.h" 101 #include "net/base/net_util.h"
103 #include "net/base/sdch_manager.h" 102 #include "net/base/sdch_manager.h"
104 #include "net/base/winsock_init.h" 103 #include "net/base/winsock_init.h"
105 #include "net/http/http_network_layer.h" 104 #include "net/http/http_network_layer.h"
106 #include "sandbox/src/sandbox.h" 105 #include "sandbox/src/sandbox.h"
107 #include "views/widget/accelerator_handler.h" 106 #include "views/widget/accelerator_handler.h"
108 #endif // defined(OS_WIN) 107 #endif // defined(OS_WIN)
109 108
110 #if defined(TOOLKIT_GTK) 109 #if defined(TOOLKIT_GTK)
111 #include "chrome/common/gtk_util.h" 110 #include "chrome/common/gtk_util.h"
111 #elif defined(TOOLKIT_VIEWS)
112 #include "chrome/browser/views/chrome_views_delegate.h"
112 #endif 113 #endif
113 114
114 namespace Platform { 115 namespace Platform {
115 116
116 void WillInitializeMainMessageLoop(const CommandLine & command_line); 117 void WillInitializeMainMessageLoop(const CommandLine & command_line);
117 void WillTerminate(); 118 void WillTerminate();
118 119
119 #if defined(OS_WIN) || defined(OS_LINUX) 120 #if defined(OS_WIN) || defined(OS_LINUX)
120 // Perform any platform-specific work that needs to be done before the main 121 // Perform any platform-specific work that needs to be done before the main
121 // message loop is created and initialized. 122 // message loop is created and initialized.
(...skipping 675 matching lines...) Expand 10 before | Expand all | Expand 10 after
797 if (metrics) 798 if (metrics)
798 metrics->Stop(); 799 metrics->Stop();
799 800
800 // browser_shutdown takes care of deleting browser_process, so we need to 801 // browser_shutdown takes care of deleting browser_process, so we need to
801 // release it. 802 // release it.
802 browser_process.release(); 803 browser_process.release();
803 browser_shutdown::Shutdown(); 804 browser_shutdown::Shutdown();
804 805
805 return result_code; 806 return result_code;
806 } 807 }
OLDNEW
« no previous file with comments | « chrome/browser/back_forward_menu_model_views.cc ('k') | chrome/browser/views/bookmark_context_menu.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698