diff options
author | andybons@chromium.org <andybons@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-15 15:20:50 +0000 |
---|---|---|
committer | andybons@chromium.org <andybons@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-15 15:20:50 +0000 |
commit | d2912a210d9bd2dcb0dfcf9645e70053f18b5c06 (patch) | |
tree | 70bdb78d5c4897586dee297e27233622460ed14d /chrome | |
parent | 19921f240d7d74bd30f1c55df5a088a4f501263e (diff) | |
download | chromium_src-d2912a210d9bd2dcb0dfcf9645e70053f18b5c06.zip chromium_src-d2912a210d9bd2dcb0dfcf9645e70053f18b5c06.tar.gz chromium_src-d2912a210d9bd2dcb0dfcf9645e70053f18b5c06.tar.bz2 |
Some minor sync cleanup and aftermath. Mostly just removing unused headers and adding others into the proper impl files.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/6690016
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78215 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
22 files changed, 28 insertions, 16 deletions
diff --git a/chrome/browser/app_controller_mac.mm b/chrome/browser/app_controller_mac.mm index 2522f93..337365d 100644 --- a/chrome/browser/app_controller_mac.mm +++ b/chrome/browser/app_controller_mac.mm @@ -22,6 +22,7 @@ #include "chrome/browser/metrics/user_metrics.h" #include "chrome/browser/printing/print_job_manager.h" #include "chrome/browser/profiles/profile_manager.h" +#include "chrome/browser/sessions/session_service.h" #include "chrome/browser/sessions/tab_restore_service.h" #include "chrome/browser/sync/profile_sync_service.h" #include "chrome/browser/sync/sync_ui_util.h" diff --git a/chrome/browser/automation/automation_provider_win.cc b/chrome/browser/automation/automation_provider_win.cc index 8797af8..665ad08 100644 --- a/chrome/browser/automation/automation_provider_win.cc +++ b/chrome/browser/automation/automation_provider_win.cc @@ -18,6 +18,7 @@ #include "chrome/browser/extensions/extension_event_router.h" #include "chrome/browser/external_tab_container_win.h" #include "chrome/browser/profiles/profile.h" +#include "chrome/browser/ui/browser.h" #include "chrome/browser/ui/views/bookmarks/bookmark_bar_view.h" #include "chrome/common/automation_messages.h" #include "chrome/common/page_zoom.h" diff --git a/chrome/browser/extensions/extension_webstore_private_browsertest.cc b/chrome/browser/extensions/extension_webstore_private_browsertest.cc index 61d9825..b6e060e 100644 --- a/chrome/browser/extensions/extension_webstore_private_browsertest.cc +++ b/chrome/browser/extensions/extension_webstore_private_browsertest.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -12,6 +12,7 @@ #include "chrome/browser/net/gaia/token_service.h" #include "chrome/browser/profiles/profile_manager.h" #include "chrome/browser/sync/profile_sync_service.h" +#include "chrome/browser/ui/browser.h" #include "chrome/common/chrome_switches.h" #include "chrome/common/net/gaia/gaia_constants.h" #include "chrome/common/url_constants.h" diff --git a/chrome/browser/sync/glue/sync_backend_host.cc b/chrome/browser/sync/glue/sync_backend_host.cc index b552e6b..bcafd0a 100644 --- a/chrome/browser/sync/glue/sync_backend_host.cc +++ b/chrome/browser/sync/glue/sync_backend_host.cc @@ -37,7 +37,6 @@ #include "content/browser/browser_thread.h" #include "content/common/notification_service.h" #include "content/common/notification_type.h" -#include "webkit/glue/webkit_glue.h" static const int kSaveChangesIntervalSeconds = 10; static const FilePath::CharType kSyncDataFolderName[] = diff --git a/chrome/browser/sync/profile_sync_service.h b/chrome/browser/sync/profile_sync_service.h index 9f10c49..6cb830e 100644 --- a/chrome/browser/sync/profile_sync_service.h +++ b/chrome/browser/sync/profile_sync_service.h @@ -19,7 +19,6 @@ #include "chrome/browser/sync/engine/syncapi.h" #include "chrome/browser/sync/glue/data_type_controller.h" #include "chrome/browser/sync/glue/data_type_manager.h" -#include "chrome/browser/sync/glue/session_model_associator.h" #include "chrome/browser/sync/glue/sync_backend_host.h" #include "chrome/browser/sync/js_event_handler_list.h" #include "chrome/browser/sync/profile_sync_service_observer.h" @@ -41,6 +40,7 @@ class TabContents; class TokenMigrator; namespace browser_sync { +class SessionModelAssociator; class JsFrontend; } // namespace browser_sync diff --git a/chrome/browser/sync/sync_setup_flow.cc b/chrome/browser/sync/sync_setup_flow.cc index a102f62..bc69654 100644 --- a/chrome/browser/sync/sync_setup_flow.cc +++ b/chrome/browser/sync/sync_setup_flow.cc @@ -23,6 +23,7 @@ #include "content/browser/renderer_host/render_view_host.h" #include "content/browser/tab_contents/tab_contents.h" #include "content/browser/webui/web_ui_util.h" +#include "grit/generated_resources.h" #include "grit/locale_settings.h" #include "ui/base/l10n/l10n_font_util.h" #include "ui/gfx/font.h" diff --git a/chrome/browser/sync/sync_setup_flow.h b/chrome/browser/sync/sync_setup_flow.h index 65e0024..90ddf95 100644 --- a/chrome/browser/sync/sync_setup_flow.h +++ b/chrome/browser/sync/sync_setup_flow.h @@ -15,7 +15,6 @@ #include "chrome/browser/sync/sync_setup_wizard.h" #include "chrome/browser/sync/syncable/model_type.h" #include "chrome/browser/ui/webui/html_dialog_ui.h" -#include "grit/generated_resources.h" #include "ui/base/l10n/l10n_util.h" #include "ui/gfx/native_widget_types.h" diff --git a/chrome/browser/sync/sync_setup_wizard.cc b/chrome/browser/sync/sync_setup_wizard.cc index 3201419..7011c3b 100644 --- a/chrome/browser/sync/sync_setup_wizard.cc +++ b/chrome/browser/sync/sync_setup_wizard.cc @@ -20,6 +20,7 @@ #include "grit/app_resources.h" #include "grit/browser_resources.h" #include "grit/chromium_strings.h" +#include "grit/generated_resources.h" #include "grit/locale_settings.h" #include "ui/base/resource/resource_bundle.h" diff --git a/chrome/browser/sync/sync_ui_util.cc b/chrome/browser/sync/sync_ui_util.cc index 03aa1cb..ead7349 100644 --- a/chrome/browser/sync/sync_ui_util.cc +++ b/chrome/browser/sync/sync_ui_util.cc @@ -11,6 +11,7 @@ #include "chrome/browser/profiles/profile.h" #include "chrome/browser/sync/profile_sync_service.h" #include "chrome/browser/ui/browser.h" +#include "chrome/browser/ui/browser_window.h" #include "chrome/browser/ui/options/options_window.h" #include "chrome/common/net/gaia/google_service_auth_error.h" #include "chrome/common/url_constants.h" @@ -46,7 +47,7 @@ void GetStatusLabelsForAuthError(const AuthError& auth_error, status_label->assign( l10n_util::GetStringUTF16(IDS_SYNC_LOGIN_INFO_OUT_OF_DATE)); } else if (auth_error.state() == AuthError::SERVICE_UNAVAILABLE) { - DCHECK (service->GetAuthenticatedUsername().empty()); + DCHECK(service->GetAuthenticatedUsername().empty()); status_label->assign( l10n_util::GetStringUTF16(IDS_SYNC_SERVICE_UNAVAILABLE)); } else if (auth_error.state() == AuthError::CONNECTION_FAILED) { diff --git a/chrome/browser/ui/cocoa/extensions/extension_installed_bubble_bridge.mm b/chrome/browser/ui/cocoa/extensions/extension_installed_bubble_bridge.mm index c0df556..32b8688 100644 --- a/chrome/browser/ui/cocoa/extensions/extension_installed_bubble_bridge.mm +++ b/chrome/browser/ui/cocoa/extensions/extension_installed_bubble_bridge.mm @@ -9,7 +9,10 @@ #include "chrome/browser/tab_contents/simple_alert_infobar_delegate.h" #include "chrome/browser/ui/browser.h" #include "chrome/browser/ui/browser_dialogs.h" +#include "chrome/browser/ui/browser_list.h" +#include "chrome/browser/ui/browser_window.h" #import "chrome/browser/ui/cocoa/extensions/extension_installed_bubble_controller.h" +#include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" #include "chrome/common/extensions/extension.h" #include "chrome/common/extensions/extension_action.h" #include "grit/generated_resources.h" diff --git a/chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk_unittest.cc b/chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk_unittest.cc index 4aa1017..1ef312f 100644 --- a/chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk_unittest.cc +++ b/chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk_unittest.cc @@ -7,6 +7,7 @@ #include "base/task.h" #include "base/utf_string_conversions.h" #include "chrome/browser/bookmarks/bookmark_model.h" +#include "chrome/browser/ui/browser.h" #include "chrome/browser/ui/gtk/tabstrip_origin_provider.h" #include "chrome/test/testing_profile.h" #include "content/browser/browser_thread.h" diff --git a/chrome/browser/ui/views/bookmarks/bookmark_context_menu_controller_views.h b/chrome/browser/ui/views/bookmarks/bookmark_context_menu_controller_views.h index b530dea..7870d21 100644 --- a/chrome/browser/ui/views/bookmarks/bookmark_context_menu_controller_views.h +++ b/chrome/browser/ui/views/bookmarks/bookmark_context_menu_controller_views.h @@ -12,7 +12,6 @@ #include "chrome/browser/bookmarks/base_bookmark_model_observer.h" #include "ui/gfx/native_widget_types.h" -class Browser; class PageNavigator; class Profile; @@ -43,8 +42,9 @@ class BookmarkContextMenuControllerViewsDelegate { class BookmarkContextMenuControllerViews : public BaseBookmarkModelObserver { public: // Creates the bookmark context menu. + // |parent_window| is the window that this menu should be added to. + // |delegate| is described above. // |profile| is used for opening urls as well as enabling 'open incognito'. - // |browser| is used to determine the PageNavigator and may be null. // |navigator| is used if |browser| is null, and is provided for testing. // |parent| is the parent for newly created nodes if |selection| is empty. // |selection| is the nodes the context menu operates on and may be empty. diff --git a/chrome/browser/ui/views/bookmarks/bookmark_menu_controller_views.cc b/chrome/browser/ui/views/bookmarks/bookmark_menu_controller_views.cc index 14ed82f..3a6effd 100644 --- a/chrome/browser/ui/views/bookmarks/bookmark_menu_controller_views.cc +++ b/chrome/browser/ui/views/bookmarks/bookmark_menu_controller_views.cc @@ -11,6 +11,7 @@ #include "chrome/browser/bookmarks/bookmark_utils.h" #include "chrome/browser/metrics/user_metrics.h" #include "chrome/browser/profiles/profile.h" +#include "chrome/browser/ui/browser.h" #include "chrome/browser/ui/views/bookmarks/bookmark_bar_view.h" #include "chrome/browser/ui/views/event_utils.h" #include "chrome/common/page_transition_types.h" diff --git a/chrome/browser/ui/views/bookmarks/bookmark_menu_controller_views.h b/chrome/browser/ui/views/bookmarks/bookmark_menu_controller_views.h index 0e77b45..25d07d2 100644 --- a/chrome/browser/ui/views/bookmarks/bookmark_menu_controller_views.h +++ b/chrome/browser/ui/views/bookmarks/bookmark_menu_controller_views.h @@ -17,7 +17,6 @@ #include "views/controls/menu/menu_item_view.h" class BookmarkBarView; -class BookmarkContextMenu; class BookmarkNode; class Browser; class PageNavigator; diff --git a/chrome/browser/ui/webui/sync_internals_ui.cc b/chrome/browser/ui/webui/sync_internals_ui.cc index 54303d9..a8ff81e 100644 --- a/chrome/browser/ui/webui/sync_internals_ui.cc +++ b/chrome/browser/ui/webui/sync_internals_ui.cc @@ -16,6 +16,7 @@ #include "chrome/browser/sync/js_frontend.h" #include "chrome/browser/sync/profile_sync_service.h" #include "chrome/browser/sync/sync_ui_util.h" +#include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" #include "chrome/browser/ui/webui/chrome_url_data_manager.h" #include "chrome/browser/ui/webui/sync_internals_html_source.h" #include "chrome/common/render_messages_params.h" diff --git a/chrome/browser/webdata/web_data_service.cc b/chrome/browser/webdata/web_data_service.cc index 21f8ee1..6fa69b4 100644 --- a/chrome/browser/webdata/web_data_service.cc +++ b/chrome/browser/webdata/web_data_service.cc @@ -22,6 +22,7 @@ #include "grit/chromium_strings.h" #include "grit/generated_resources.h" #include "third_party/skia/include/core/SkBitmap.h" +#include "webkit/glue/form_field.h" #include "webkit/glue/password_form.h" //////////////////////////////////////////////////////////////////////////////// diff --git a/chrome/browser/webdata/web_data_service.h b/chrome/browser/webdata/web_data_service.h index 2dde084..8883667 100644 --- a/chrome/browser/webdata/web_data_service.h +++ b/chrome/browser/webdata/web_data_service.h @@ -16,7 +16,6 @@ #include "base/synchronization/lock.h" #include "chrome/browser/search_engines/template_url_id.h" #include "content/browser/browser_thread.h" -#include "webkit/glue/form_field.h" class AutofillChange; class AutofillProfile; @@ -36,6 +35,7 @@ class Thread; } namespace webkit_glue { +struct FormField; struct PasswordForm; } diff --git a/chrome/test/browser_with_test_window_test.cc b/chrome/test/browser_with_test_window_test.cc index b98e256..0cc73b4 100644 --- a/chrome/test/browser_with_test_window_test.cc +++ b/chrome/test/browser_with_test_window_test.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. +// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -10,7 +10,6 @@ #include "chrome/browser/chrome_content_browser_client.h" #include "chrome/browser/tabs/tab_strip_model.h" -#include "chrome/browser/ui/browser.h" #include "chrome/browser/ui/browser_navigator.h" #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" #include "chrome/common/page_transition_types.h" diff --git a/chrome/test/browser_with_test_window_test.h b/chrome/test/browser_with_test_window_test.h index 957e996..150b6e55 100644 --- a/chrome/test/browser_with_test_window_test.h +++ b/chrome/test/browser_with_test_window_test.h @@ -1,4 +1,4 @@ -// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -7,17 +7,16 @@ #pragma once #include "base/message_loop.h" -#include "chrome/test/testing_browser_process_test.h" +#include "chrome/browser/ui/browser.h" #include "chrome/test/test_browser_window.h" +#include "chrome/test/testing_browser_process_test.h" +#include "chrome/test/testing_profile.h" #include "content/browser/browser_thread.h" #include "content/browser/renderer_host/test_render_view_host.h" #include "testing/gtest/include/gtest/gtest.h" -class Browser; class GURL; class NavigationController; -class TestBrowserWindow; -class TestingProfile; // Base class for browser based unit tests. BrowserWithTestWindowTest creates a // Browser with a TestingProfile and TestBrowserWindow. To add a tab use diff --git a/chrome/test/live_sync/live_autofill_sync_test.cc b/chrome/test/live_sync/live_autofill_sync_test.cc index 9954be6..e662114 100644 --- a/chrome/test/live_sync/live_autofill_sync_test.cc +++ b/chrome/test/live_sync/live_autofill_sync_test.cc @@ -13,6 +13,8 @@ #include "chrome/browser/webdata/autofill_entry.h" #include "chrome/browser/webdata/web_database.h" #include "chrome/test/thread_observer_helper.h" +#include "webkit/glue/form_field.h" + using base::WaitableEvent; using testing::_; diff --git a/chrome/test/live_sync/live_sessions_sync_test.cc b/chrome/test/live_sync/live_sessions_sync_test.cc index 90fd9be..82b1caa 100644 --- a/chrome/test/live_sync/live_sessions_sync_test.cc +++ b/chrome/test/live_sync/live_sessions_sync_test.cc @@ -7,6 +7,7 @@ #include "chrome/browser/profiles/profile.h" #include "chrome/browser/sessions/session_service.h" #include "chrome/browser/sync/profile_sync_service.h" +#include "chrome/browser/sync/glue/session_model_associator.h" #include "chrome/test/ui_test_utils.h" #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" #include "content/browser/browser_thread.h" diff --git a/chrome/test/live_sync/single_client_live_sessions_sync_test.cc b/chrome/test/live_sync/single_client_live_sessions_sync_test.cc index 02de47d..76a3dc2 100644 --- a/chrome/test/live_sync/single_client_live_sessions_sync_test.cc +++ b/chrome/test/live_sync/single_client_live_sessions_sync_test.cc @@ -3,6 +3,7 @@ // found in the LICENSE file. #include "base/scoped_vector.h" +#include "chrome/browser/sessions/session_service.h" #include "chrome/browser/sync/profile_sync_service_harness.h" #include "chrome/test/live_sync/live_sessions_sync_test.h" |