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

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

Issue 12321107: Move shell integration code from chrome/browser to apps (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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
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/chrome_browser_main_win.h" 5 #include "chrome/browser/chrome_browser_main_win.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 #include <shellapi.h> 8 #include <shellapi.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
11 11
12 #include "apps/shell_integration.h"
12 #include "base/command_line.h" 13 #include "base/command_line.h"
13 #include "base/environment.h" 14 #include "base/environment.h"
14 #include "base/files/file_path.h" 15 #include "base/files/file_path.h"
15 #include "base/i18n/rtl.h" 16 #include "base/i18n/rtl.h"
16 #include "base/memory/scoped_ptr.h" 17 #include "base/memory/scoped_ptr.h"
17 #include "base/path_service.h" 18 #include "base/path_service.h"
18 #include "base/scoped_native_library.h" 19 #include "base/scoped_native_library.h"
19 #include "base/strings/string_number_conversions.h" 20 #include "base/strings/string_number_conversions.h"
20 #include "base/utf_string_conversions.h" 21 #include "base/utf_string_conversions.h"
21 #include "base/win/metro.h" 22 #include "base/win/metro.h"
22 #include "base/win/text_services_message_filter.h" 23 #include "base/win/text_services_message_filter.h"
23 #include "base/win/windows_version.h" 24 #include "base/win/windows_version.h"
24 #include "base/win/wrapped_window_proc.h" 25 #include "base/win/wrapped_window_proc.h"
25 #include "chrome/browser/browser_util_win.h" 26 #include "chrome/browser/browser_util_win.h"
26 #include "chrome/browser/first_run/first_run.h" 27 #include "chrome/browser/first_run/first_run.h"
27 #include "chrome/browser/metrics/metrics_service.h" 28 #include "chrome/browser/metrics/metrics_service.h"
28 #include "chrome/browser/profiles/profile_info_cache.h" 29 #include "chrome/browser/profiles/profile_info_cache.h"
29 #include "chrome/browser/profiles/profile_shortcut_manager.h" 30 #include "chrome/browser/profiles/profile_shortcut_manager.h"
30 #include "chrome/browser/shell_integration.h"
31 #include "chrome/browser/storage_monitor/removable_device_notifications_window_w in.h" 31 #include "chrome/browser/storage_monitor/removable_device_notifications_window_w in.h"
32 #include "chrome/browser/ui/simple_message_box.h" 32 #include "chrome/browser/ui/simple_message_box.h"
33 #include "chrome/browser/ui/uninstall_browser_prompt.h" 33 #include "chrome/browser/ui/uninstall_browser_prompt.h"
34 #include "chrome/common/chrome_constants.h" 34 #include "chrome/common/chrome_constants.h"
35 #include "chrome/common/chrome_result_codes.h" 35 #include "chrome/common/chrome_result_codes.h"
36 #include "chrome/common/chrome_switches.h" 36 #include "chrome/common/chrome_switches.h"
37 #include "chrome/common/env_vars.h" 37 #include "chrome/common/env_vars.h"
38 #include "chrome/installer/launcher_support/chrome_launcher_support.h" 38 #include "chrome/installer/launcher_support/chrome_launcher_support.h"
39 #include "chrome/installer/util/browser_distribution.h" 39 #include "chrome/installer/util/browser_distribution.h"
40 #include "chrome/installer/util/helper.h" 40 #include "chrome/installer/util/helper.h"
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 if (resource_id) 399 if (resource_id)
400 return l10n_util::GetStringUTF16(resource_id); 400 return l10n_util::GetStringUTF16(resource_id);
401 return string16(); 401 return string16();
402 } 402 }
403 403
404 // static 404 // static
405 void ChromeBrowserMainPartsWin::SetupInstallerUtilStrings() { 405 void ChromeBrowserMainPartsWin::SetupInstallerUtilStrings() {
406 CR_DEFINE_STATIC_LOCAL(TranslationDelegate, delegate, ()); 406 CR_DEFINE_STATIC_LOCAL(TranslationDelegate, delegate, ());
407 installer::SetTranslationDelegate(&delegate); 407 installer::SetTranslationDelegate(&delegate);
408 } 408 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698