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

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

Issue 1419103009: [Sync] Componentize ProfileSyncService (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@max_bogue_sync_backend_host
Patch Set: Rebase Created 5 years, 1 month 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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/ui/browser.h" 5 #include "chrome/browser/ui/browser.h"
6 6
7 #if defined(OS_WIN) 7 #if defined(OS_WIN)
8 #include <windows.h> 8 #include <windows.h>
9 #include <shellapi.h> 9 #include <shellapi.h>
10 #endif // defined(OS_WIN) 10 #endif // defined(OS_WIN)
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 #include "chrome/browser/profiles/profile_metrics.h" 70 #include "chrome/browser/profiles/profile_metrics.h"
71 #include "chrome/browser/profiles/profiles_state.h" 71 #include "chrome/browser/profiles/profiles_state.h"
72 #include "chrome/browser/repost_form_warning_controller.h" 72 #include "chrome/browser/repost_form_warning_controller.h"
73 #include "chrome/browser/search/search.h" 73 #include "chrome/browser/search/search.h"
74 #include "chrome/browser/sessions/session_restore.h" 74 #include "chrome/browser/sessions/session_restore.h"
75 #include "chrome/browser/sessions/session_service.h" 75 #include "chrome/browser/sessions/session_service.h"
76 #include "chrome/browser/sessions/session_service_factory.h" 76 #include "chrome/browser/sessions/session_service_factory.h"
77 #include "chrome/browser/sessions/session_tab_helper.h" 77 #include "chrome/browser/sessions/session_tab_helper.h"
78 #include "chrome/browser/sessions/tab_restore_service_factory.h" 78 #include "chrome/browser/sessions/tab_restore_service_factory.h"
79 #include "chrome/browser/ssl/security_state_model.h" 79 #include "chrome/browser/ssl/security_state_model.h"
80 #include "chrome/browser/sync/profile_sync_service.h"
81 #include "chrome/browser/sync/profile_sync_service_factory.h" 80 #include "chrome/browser/sync/profile_sync_service_factory.h"
82 #include "chrome/browser/sync/sync_ui_util.h" 81 #include "chrome/browser/sync/sync_ui_util.h"
83 #include "chrome/browser/tab_contents/retargeting_details.h" 82 #include "chrome/browser/tab_contents/retargeting_details.h"
84 #include "chrome/browser/tab_contents/tab_util.h" 83 #include "chrome/browser/tab_contents/tab_util.h"
85 #include "chrome/browser/task_management/web_contents_tags.h" 84 #include "chrome/browser/task_management/web_contents_tags.h"
86 #include "chrome/browser/themes/theme_service.h" 85 #include "chrome/browser/themes/theme_service.h"
87 #include "chrome/browser/themes/theme_service_factory.h" 86 #include "chrome/browser/themes/theme_service_factory.h"
88 #include "chrome/browser/translate/chrome_translate_client.h" 87 #include "chrome/browser/translate/chrome_translate_client.h"
89 #include "chrome/browser/ui/autofill/chrome_autofill_client.h" 88 #include "chrome/browser/ui/autofill/chrome_autofill_client.h"
90 #include "chrome/browser/ui/blocked_content/popup_blocker_tab_helper.h" 89 #include "chrome/browser/ui/blocked_content/popup_blocker_tab_helper.h"
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 #include "chrome/common/profiling.h" 150 #include "chrome/common/profiling.h"
152 #include "chrome/common/search_types.h" 151 #include "chrome/common/search_types.h"
153 #include "chrome/common/url_constants.h" 152 #include "chrome/common/url_constants.h"
154 #include "chrome/grit/chromium_strings.h" 153 #include "chrome/grit/chromium_strings.h"
155 #include "chrome/grit/generated_resources.h" 154 #include "chrome/grit/generated_resources.h"
156 #include "chrome/grit/locale_settings.h" 155 #include "chrome/grit/locale_settings.h"
157 #include "components/app_modal/javascript_dialog_manager.h" 156 #include "components/app_modal/javascript_dialog_manager.h"
158 #include "components/bookmarks/browser/bookmark_model.h" 157 #include "components/bookmarks/browser/bookmark_model.h"
159 #include "components/bookmarks/browser/bookmark_utils.h" 158 #include "components/bookmarks/browser/bookmark_utils.h"
160 #include "components/bookmarks/common/bookmark_pref_names.h" 159 #include "components/bookmarks/common/bookmark_pref_names.h"
160 #include "components/browser_sync/browser/profile_sync_service.h"
161 #include "components/content_settings/core/browser/host_content_settings_map.h" 161 #include "components/content_settings/core/browser/host_content_settings_map.h"
162 #include "components/favicon/content/content_favicon_driver.h" 162 #include "components/favicon/content/content_favicon_driver.h"
163 #include "components/history/core/browser/top_sites.h" 163 #include "components/history/core/browser/top_sites.h"
164 #include "components/search/search.h" 164 #include "components/search/search.h"
165 #include "components/sessions/core/session_types.h" 165 #include "components/sessions/core/session_types.h"
166 #include "components/sessions/core/tab_restore_service.h" 166 #include "components/sessions/core/tab_restore_service.h"
167 #include "components/startup_metric_utils/startup_metric_utils.h" 167 #include "components/startup_metric_utils/startup_metric_utils.h"
168 #include "components/translate/core/browser/language_state.h" 168 #include "components/translate/core/browser/language_state.h"
169 #include "components/ui/zoom/zoom_controller.h" 169 #include "components/ui/zoom/zoom_controller.h"
170 #include "components/web_modal/web_contents_modal_dialog_manager.h" 170 #include "components/web_modal/web_contents_modal_dialog_manager.h"
(...skipping 2532 matching lines...) Expand 10 before | Expand all | Expand 10 after
2703 if (contents && !allow_js_access) { 2703 if (contents && !allow_js_access) {
2704 contents->web_contents()->GetController().LoadURL( 2704 contents->web_contents()->GetController().LoadURL(
2705 target_url, 2705 target_url,
2706 content::Referrer(), 2706 content::Referrer(),
2707 ui::PAGE_TRANSITION_LINK, 2707 ui::PAGE_TRANSITION_LINK,
2708 std::string()); // No extra headers. 2708 std::string()); // No extra headers.
2709 } 2709 }
2710 2710
2711 return contents != NULL; 2711 return contents != NULL;
2712 } 2712 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698