| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 <windows.h> | 5 #include <windows.h> |
| 6 #include <shellapi.h> | 6 #include <shellapi.h> |
| 7 | 7 |
| 8 #include "chrome/browser/browser.h" | 8 #include "chrome/browser/browser.h" |
| 9 | 9 |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 #include "chrome/browser/browser_window.h" | 21 #include "chrome/browser/browser_window.h" |
| 22 #include "chrome/browser/cert_store.h" | 22 #include "chrome/browser/cert_store.h" |
| 23 #include "chrome/browser/character_encoding.h" | 23 #include "chrome/browser/character_encoding.h" |
| 24 #include "chrome/browser/debugger/debugger_window.h" | 24 #include "chrome/browser/debugger/debugger_window.h" |
| 25 #include "chrome/browser/dock_info.h" | 25 #include "chrome/browser/dock_info.h" |
| 26 #include "chrome/browser/dom_ui/new_tab_ui.h" | 26 #include "chrome/browser/dom_ui/new_tab_ui.h" |
| 27 #include "chrome/browser/download/save_package.h" | 27 #include "chrome/browser/download/save_package.h" |
| 28 #include "chrome/browser/history_tab_ui.h" | 28 #include "chrome/browser/history_tab_ui.h" |
| 29 #include "chrome/browser/metrics/user_metrics.h" | 29 #include "chrome/browser/metrics/user_metrics.h" |
| 30 #include "chrome/browser/options_window.h" | 30 #include "chrome/browser/options_window.h" |
| 31 #include "chrome/browser/net/url_fixer_upper.h" |
| 31 #include "chrome/browser/plugin_process_host.h" | 32 #include "chrome/browser/plugin_process_host.h" |
| 32 #include "chrome/browser/plugin_service.h" | 33 #include "chrome/browser/plugin_service.h" |
| 33 #include "chrome/browser/profile.h" | 34 #include "chrome/browser/profile.h" |
| 34 #include "chrome/browser/sessions/session_service.h" | 35 #include "chrome/browser/sessions/session_service.h" |
| 35 #include "chrome/browser/ssl/ssl_error_info.h" | 36 #include "chrome/browser/ssl/ssl_error_info.h" |
| 36 #include "chrome/browser/tab_contents/interstitial_page.h" | 37 #include "chrome/browser/tab_contents/interstitial_page.h" |
| 37 #include "chrome/browser/tab_contents/navigation_controller.h" | 38 #include "chrome/browser/tab_contents/navigation_controller.h" |
| 38 #include "chrome/browser/tab_contents/navigation_entry.h" | 39 #include "chrome/browser/tab_contents/navigation_entry.h" |
| 39 #include "chrome/browser/tab_contents/site_instance.h" | 40 #include "chrome/browser/tab_contents/site_instance.h" |
| 40 #include "chrome/browser/tab_contents/web_contents_view.h" | 41 #include "chrome/browser/tab_contents/web_contents_view.h" |
| 41 #include "chrome/browser/task_manager.h" | 42 #include "chrome/browser/task_manager.h" |
| 42 #include "chrome/browser/url_fixer_upper.h" | |
| 43 #include "chrome/browser/user_data_manager.h" | 43 #include "chrome/browser/user_data_manager.h" |
| 44 #include "chrome/browser/view_ids.h" | 44 #include "chrome/browser/view_ids.h" |
| 45 #include "chrome/browser/views/download_tab_view.h" | 45 #include "chrome/browser/views/download_tab_view.h" |
| 46 #include "chrome/browser/views/go_button.h" | 46 #include "chrome/browser/views/go_button.h" |
| 47 #include "chrome/browser/views/location_bar_view.h" | 47 #include "chrome/browser/views/location_bar_view.h" |
| 48 #include "chrome/browser/views/new_profile_dialog.h" | 48 #include "chrome/browser/views/new_profile_dialog.h" |
| 49 #include "chrome/browser/views/select_profile_dialog.h" | 49 #include "chrome/browser/views/select_profile_dialog.h" |
| 50 #include "chrome/browser/views/status_bubble.h" | 50 #include "chrome/browser/views/status_bubble.h" |
| 51 #include "chrome/browser/views/toolbar_star_toggle.h" | 51 #include "chrome/browser/views/toolbar_star_toggle.h" |
| 52 #include "chrome/browser/window_sizer.h" | 52 #include "chrome/browser/window_sizer.h" |
| (...skipping 2356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2409 | 2409 |
| 2410 // We need to register the window position pref. | 2410 // We need to register the window position pref. |
| 2411 std::wstring window_pref(prefs::kBrowserWindowPlacement); | 2411 std::wstring window_pref(prefs::kBrowserWindowPlacement); |
| 2412 window_pref.append(L"_"); | 2412 window_pref.append(L"_"); |
| 2413 window_pref.append(app_name); | 2413 window_pref.append(app_name); |
| 2414 PrefService* prefs = g_browser_process->local_state(); | 2414 PrefService* prefs = g_browser_process->local_state(); |
| 2415 DCHECK(prefs); | 2415 DCHECK(prefs); |
| 2416 | 2416 |
| 2417 prefs->RegisterDictionaryPref(window_pref.c_str()); | 2417 prefs->RegisterDictionaryPref(window_pref.c_str()); |
| 2418 } | 2418 } |
| OLD | NEW |