summaryrefslogtreecommitdiffstats
path: root/chrome/browser
diff options
context:
space:
mode:
authorkaiwang@chromium.org <kaiwang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-20 14:52:47 +0000
committerkaiwang@chromium.org <kaiwang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-20 14:52:47 +0000
commit07cd37385dc9d907a30743af6173eb4a4bbcc15a (patch)
tree54d5cb06699353552645053e26e9e83c33c335b3 /chrome/browser
parentaecb87b57a874d20e1f3141c5bc98346c5c68b53 (diff)
downloadchromium_src-07cd37385dc9d907a30743af6173eb4a4bbcc15a.zip
chromium_src-07cd37385dc9d907a30743af6173eb4a4bbcc15a.tar.gz
chromium_src-07cd37385dc9d907a30743af6173eb4a4bbcc15a.tar.bz2
Move files from c/b/a/bookmarks and c/b/a/sync back to c/b
This is because we changed the approach to componentize code into src/components. So c/b/api directory is depereated. ProfileSyncServiceBase is going to be folded into ProfileSyncService. I will have a followup change for this. BUG=138280 Review URL: https://chromiumcodereview.appspot.com/12614015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@189273 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
-rw-r--r--chrome/browser/api/bookmarks/OWNERS2
-rw-r--r--chrome/browser/api/sync/DEPS3
-rw-r--r--chrome/browser/api/sync/OWNERS8
-rw-r--r--chrome/browser/bookmarks/bookmark_model.h2
-rw-r--r--chrome/browser/bookmarks/bookmark_model_factory.cc7
-rw-r--r--chrome/browser/bookmarks/bookmark_service.cc16
-rw-r--r--chrome/browser/bookmarks/bookmark_service.h (renamed from chrome/browser/api/bookmarks/bookmark_service.h)6
-rw-r--r--chrome/browser/chromeos/login/user_manager_impl.h2
-rw-r--r--chrome/browser/favicon/DEPS1
-rw-r--r--chrome/browser/favicon/favicon_handler.cc2
-rw-r--r--chrome/browser/history/DEPS1
-rw-r--r--chrome/browser/history/android/android_provider_backend.cc2
-rw-r--r--chrome/browser/history/android/android_provider_backend_unittest.cc2
-rw-r--r--chrome/browser/history/android/bookmark_model_sql_handler.cc2
-rw-r--r--chrome/browser/history/expire_history_backend.cc2
-rw-r--r--chrome/browser/history/history_backend.cc2
-rw-r--r--chrome/browser/history/in_memory_url_index.cc2
-rw-r--r--chrome/browser/history/scored_history_match.cc2
-rw-r--r--chrome/browser/history/scored_history_match_unittest.cc2
-rw-r--r--chrome/browser/history/url_index_private_data.cc2
-rw-r--r--chrome/browser/signin/signin_tracker.h2
-rw-r--r--chrome/browser/sync/profile_sync_service.h4
-rw-r--r--chrome/browser/sync/profile_sync_service_android.h2
-rw-r--r--chrome/browser/sync/profile_sync_service_base.cc16
-rw-r--r--chrome/browser/sync/profile_sync_service_base.h (renamed from chrome/browser/api/sync/profile_sync_service_base.h)8
-rw-r--r--chrome/browser/sync/profile_sync_service_factory.cc7
-rw-r--r--chrome/browser/sync/profile_sync_service_harness.h2
-rw-r--r--chrome/browser/sync/profile_sync_service_observer.h (renamed from chrome/browser/api/sync/profile_sync_service_observer.h)6
-rw-r--r--chrome/browser/sync/profile_sync_test_util.h2
-rw-r--r--chrome/browser/sync/sync_global_error.cc2
-rw-r--r--chrome/browser/sync/sync_global_error.h2
-rw-r--r--chrome/browser/sync_file_system/sync_file_system_service.h2
-rw-r--r--chrome/browser/ui/ash/app_sync_ui_state.h2
-rw-r--r--chrome/browser/ui/autofill/tab_autofill_manager_delegate.h2
-rw-r--r--chrome/browser/ui/webui/options/browser_options_handler.h2
35 files changed, 68 insertions, 61 deletions
diff --git a/chrome/browser/api/bookmarks/OWNERS b/chrome/browser/api/bookmarks/OWNERS
deleted file mode 100644
index b221410..0000000
--- a/chrome/browser/api/bookmarks/OWNERS
+++ /dev/null
@@ -1,2 +0,0 @@
-brettw@chromium.org
-sky@chromium.org
diff --git a/chrome/browser/api/sync/DEPS b/chrome/browser/api/sync/DEPS
deleted file mode 100644
index cc48df1..0000000
--- a/chrome/browser/api/sync/DEPS
+++ /dev/null
@@ -1,3 +0,0 @@
-include_rules = [
- "+sync/internal_api/public",
-]
diff --git a/chrome/browser/api/sync/OWNERS b/chrome/browser/api/sync/OWNERS
deleted file mode 100644
index 033e1f6..0000000
--- a/chrome/browser/api/sync/OWNERS
+++ /dev/null
@@ -1,8 +0,0 @@
-akalin@chromium.org
-atwilson@chromium.org
-lipalani@chromium.org
-nick@chromium.org
-rlarocque@chromium.org
-rsimha@chromium.org
-tim@chromium.org
-zea@chromium.org
diff --git a/chrome/browser/bookmarks/bookmark_model.h b/chrome/browser/bookmarks/bookmark_model.h
index 3012847..1f0cf7b 100644
--- a/chrome/browser/bookmarks/bookmark_model.h
+++ b/chrome/browser/bookmarks/bookmark_model.h
@@ -16,7 +16,7 @@
#include "base/string16.h"
#include "base/synchronization/lock.h"
#include "base/synchronization/waitable_event.h"
-#include "chrome/browser/api/bookmarks/bookmark_service.h"
+#include "chrome/browser/bookmarks/bookmark_service.h"
#include "chrome/browser/profiles/profile_keyed_service.h"
#include "chrome/common/cancelable_task_tracker.h"
#include "content/public/browser/notification_observer.h"
diff --git a/chrome/browser/bookmarks/bookmark_model_factory.cc b/chrome/browser/bookmarks/bookmark_model_factory.cc
index b8d23a9..1f63b6d 100644
--- a/chrome/browser/bookmarks/bookmark_model_factory.cc
+++ b/chrome/browser/bookmarks/bookmark_model_factory.cc
@@ -59,10 +59,3 @@ bool BookmarkModelFactory::ServiceRedirectedInIncognito() const {
bool BookmarkModelFactory::ServiceIsNULLWhileTesting() const {
return true;
}
-
-// static
-BookmarkService* BookmarkService::FromBrowserContext(
- content::BrowserContext* browser_context) {
- return BookmarkModelFactory::GetForProfile(
- Profile::FromBrowserContext(browser_context));
-}
diff --git a/chrome/browser/bookmarks/bookmark_service.cc b/chrome/browser/bookmarks/bookmark_service.cc
new file mode 100644
index 0000000..b841f89
--- /dev/null
+++ b/chrome/browser/bookmarks/bookmark_service.cc
@@ -0,0 +1,16 @@
+// Copyright 2013 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.
+
+#include "chrome/browser/bookmarks/bookmark_service.h"
+
+#include "chrome/browser/bookmarks/bookmark_model.h"
+#include "chrome/browser/bookmarks/bookmark_model_factory.h"
+#include "chrome/browser/profiles/profile.h"
+
+// static
+BookmarkService* BookmarkService::FromBrowserContext(
+ content::BrowserContext* browser_context) {
+ return BookmarkModelFactory::GetForProfile(
+ Profile::FromBrowserContext(browser_context));
+}
diff --git a/chrome/browser/api/bookmarks/bookmark_service.h b/chrome/browser/bookmarks/bookmark_service.h
index fce9e71..95afaf4 100644
--- a/chrome/browser/api/bookmarks/bookmark_service.h
+++ b/chrome/browser/bookmarks/bookmark_service.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_API_BOOKMARKS_BOOKMARK_SERVICE_H_
-#define CHROME_BROWSER_API_BOOKMARKS_BOOKMARK_SERVICE_H_
+#ifndef CHROME_BROWSER_BOOKMARKS_BOOKMARK_SERVICE_H_
+#define CHROME_BROWSER_BOOKMARKS_BOOKMARK_SERVICE_H_
#include <vector>
@@ -50,4 +50,4 @@ class BookmarkService {
virtual ~BookmarkService() {}
};
-#endif // CHROME_BROWSER_API_BOOKMARKS_BOOKMARK_SERVICE_H_
+#endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_SERVICE_H_
diff --git a/chrome/browser/chromeos/login/user_manager_impl.h b/chrome/browser/chromeos/login/user_manager_impl.h
index e37b04e..1eabca7 100644
--- a/chrome/browser/chromeos/login/user_manager_impl.h
+++ b/chrome/browser/chromeos/login/user_manager_impl.h
@@ -14,7 +14,6 @@
#include "base/observer_list.h"
#include "base/synchronization/lock.h"
#include "base/values.h"
-#include "chrome/browser/api/sync/profile_sync_service_observer.h"
#include "chrome/browser/chromeos/login/user.h"
#include "chrome/browser/chromeos/login/user_image_manager_impl.h"
#include "chrome/browser/chromeos/login/user_manager.h"
@@ -22,6 +21,7 @@
#include "chrome/browser/chromeos/policy/device_local_account_policy_service.h"
#include "chrome/browser/chromeos/settings/cros_settings.h"
#include "chrome/browser/chromeos/settings/device_settings_service.h"
+#include "chrome/browser/sync/profile_sync_service_observer.h"
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
diff --git a/chrome/browser/favicon/DEPS b/chrome/browser/favicon/DEPS
index 1c9912b..a609c84 100644
--- a/chrome/browser/favicon/DEPS
+++ b/chrome/browser/favicon/DEPS
@@ -16,6 +16,7 @@
#
# Do not add to the list of temporarily-allowed dependencies below,
# and please do not introduce more #includes of these files.
+ "!chrome/browser/bookmarks/bookmark_service.h",
"!chrome/browser/history/history_backend.h",
"!chrome/browser/history/history_service.h",
"!chrome/browser/history/history_service_factory.h",
diff --git a/chrome/browser/favicon/favicon_handler.cc b/chrome/browser/favicon/favicon_handler.cc
index 7435d2e..c9f3af3 100644
--- a/chrome/browser/favicon/favicon_handler.cc
+++ b/chrome/browser/favicon/favicon_handler.cc
@@ -12,7 +12,7 @@
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/memory/ref_counted_memory.h"
-#include "chrome/browser/api/bookmarks/bookmark_service.h"
+#include "chrome/browser/bookmarks/bookmark_service.h"
#include "chrome/browser/favicon/favicon_service_factory.h"
#include "chrome/browser/favicon/favicon_util.h"
#include "chrome/browser/history/select_favicon_frames.h"
diff --git a/chrome/browser/history/DEPS b/chrome/browser/history/DEPS
index 8cd6107..7f06409 100644
--- a/chrome/browser/history/DEPS
+++ b/chrome/browser/history/DEPS
@@ -20,6 +20,7 @@ include_rules = [
"!chrome/browser/autocomplete/url_prefix.h",
"!chrome/browser/bookmarks/bookmark_model.h",
"!chrome/browser/bookmarks/bookmark_model_factory.h",
+ "!chrome/browser/bookmarks/bookmark_service.h",
"!chrome/browser/browser_process.h",
"!chrome/browser/chromeos/login/existing_user_controller.h",
"!chrome/browser/content_settings/cookie_settings.h",
diff --git a/chrome/browser/history/android/android_provider_backend.cc b/chrome/browser/history/android/android_provider_backend.cc
index 9548e74..fe29a4d 100644
--- a/chrome/browser/history/android/android_provider_backend.cc
+++ b/chrome/browser/history/android/android_provider_backend.cc
@@ -5,7 +5,7 @@
#include "chrome/browser/history/android/android_provider_backend.h"
#include "base/i18n/case_conversion.h"
-#include "chrome/browser/api/bookmarks/bookmark_service.h"
+#include "chrome/browser/bookmarks/bookmark_service.h"
#include "chrome/browser/history/android/android_time.h"
#include "chrome/browser/history/android/android_urls_sql_handler.h"
#include "chrome/browser/history/android/bookmark_model_sql_handler.h"
diff --git a/chrome/browser/history/android/android_provider_backend_unittest.cc b/chrome/browser/history/android/android_provider_backend_unittest.cc
index b26e368..24ee397 100644
--- a/chrome/browser/history/android/android_provider_backend_unittest.cc
+++ b/chrome/browser/history/android/android_provider_backend_unittest.cc
@@ -12,9 +12,9 @@
#include "base/memory/ref_counted.h"
#include "base/stringprintf.h"
#include "base/utf_string_conversions.h"
-#include "chrome/browser/api/bookmarks/bookmark_service.h"
#include "chrome/browser/bookmarks/bookmark_model.h"
#include "chrome/browser/bookmarks/bookmark_model_factory.h"
+#include "chrome/browser/bookmarks/bookmark_service.h"
#include "chrome/browser/history/android/android_time.h"
#include "chrome/browser/history/history_backend.h"
#include "chrome/browser/profiles/profile_manager.h"
diff --git a/chrome/browser/history/android/bookmark_model_sql_handler.cc b/chrome/browser/history/android/bookmark_model_sql_handler.cc
index 35cdda3..98e2460 100644
--- a/chrome/browser/history/android/bookmark_model_sql_handler.cc
+++ b/chrome/browser/history/android/bookmark_model_sql_handler.cc
@@ -5,9 +5,9 @@
#include "chrome/browser/history/android/bookmark_model_sql_handler.h"
#include "base/logging.h"
-#include "chrome/browser/api/bookmarks/bookmark_service.h"
#include "chrome/browser/bookmarks/bookmark_model.h"
#include "chrome/browser/bookmarks/bookmark_model_factory.h"
+#include "chrome/browser/bookmarks/bookmark_service.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/history/url_database.h"
#include "chrome/browser/profiles/profile_manager.h"
diff --git a/chrome/browser/history/expire_history_backend.cc b/chrome/browser/history/expire_history_backend.cc
index 0d3f624..793d75a 100644
--- a/chrome/browser/history/expire_history_backend.cc
+++ b/chrome/browser/history/expire_history_backend.cc
@@ -13,7 +13,7 @@
#include "base/file_util.h"
#include "base/logging.h"
#include "base/message_loop.h"
-#include "chrome/browser/api/bookmarks/bookmark_service.h"
+#include "chrome/browser/bookmarks/bookmark_service.h"
#include "chrome/browser/history/archived_database.h"
#include "chrome/browser/history/history_database.h"
#include "chrome/browser/history/history_notifications.h"
diff --git a/chrome/browser/history/history_backend.cc b/chrome/browser/history/history_backend.cc
index 26a0d9d..ad2457d 100644
--- a/chrome/browser/history/history_backend.cc
+++ b/chrome/browser/history/history_backend.cc
@@ -23,8 +23,8 @@
#include "base/string_util.h"
#include "base/time.h"
#include "base/utf_string_conversions.h"
-#include "chrome/browser/api/bookmarks/bookmark_service.h"
#include "chrome/browser/autocomplete/history_url_provider.h"
+#include "chrome/browser/bookmarks/bookmark_service.h"
#include "chrome/browser/history/download_row.h"
#include "chrome/browser/history/history_db_task.h"
#include "chrome/browser/history/history_notifications.h"
diff --git a/chrome/browser/history/in_memory_url_index.cc b/chrome/browser/history/in_memory_url_index.cc
index e9e0a41..0207af2 100644
--- a/chrome/browser/history/in_memory_url_index.cc
+++ b/chrome/browser/history/in_memory_url_index.cc
@@ -7,9 +7,9 @@
#include "base/debug/trace_event.h"
#include "base/file_util.h"
#include "base/utf_string_conversions.h"
-#include "chrome/browser/api/bookmarks/bookmark_service.h"
#include "chrome/browser/bookmarks/bookmark_model.h"
#include "chrome/browser/bookmarks/bookmark_model_factory.h"
+#include "chrome/browser/bookmarks/bookmark_service.h"
#include "chrome/browser/history/history_notifications.h"
#include "chrome/browser/history/history_service.h"
#include "chrome/browser/history/history_service_factory.h"
diff --git a/chrome/browser/history/scored_history_match.cc b/chrome/browser/history/scored_history_match.cc
index 40edbf9..1d12092 100644
--- a/chrome/browser/history/scored_history_match.cc
+++ b/chrome/browser/history/scored_history_match.cc
@@ -16,9 +16,9 @@
#include "base/metrics/histogram.h"
#include "base/string_util.h"
#include "base/utf_string_conversions.h"
-#include "chrome/browser/api/bookmarks/bookmark_service.h"
#include "chrome/browser/autocomplete/history_url_provider.h"
#include "chrome/browser/autocomplete/url_prefix.h"
+#include "chrome/browser/bookmarks/bookmark_service.h"
#include "chrome/browser/omnibox/omnibox_field_trial.h"
#include "chrome/common/chrome_switches.h"
#include "content/public/browser/browser_thread.h"
diff --git a/chrome/browser/history/scored_history_match_unittest.cc b/chrome/browser/history/scored_history_match_unittest.cc
index 5ac60c3..7d84b81 100644
--- a/chrome/browser/history/scored_history_match_unittest.cc
+++ b/chrome/browser/history/scored_history_match_unittest.cc
@@ -6,7 +6,7 @@
#include "base/string16.h"
#include "base/utf_string_conversions.h"
-#include "chrome/browser/api/bookmarks/bookmark_service.h"
+#include "chrome/browser/bookmarks/bookmark_service.h"
#include "chrome/browser/history/scored_history_match.h"
#include "testing/gtest/include/gtest/gtest.h"
diff --git a/chrome/browser/history/url_index_private_data.cc b/chrome/browser/history/url_index_private_data.cc
index 01a6642..6c39c26 100644
--- a/chrome/browser/history/url_index_private_data.cc
+++ b/chrome/browser/history/url_index_private_data.cc
@@ -19,9 +19,9 @@
#include "base/string_util.h"
#include "base/time.h"
#include "base/utf_string_conversions.h"
-#include "chrome/browser/api/bookmarks/bookmark_service.h"
#include "chrome/browser/autocomplete/autocomplete_provider.h"
#include "chrome/browser/autocomplete/url_prefix.h"
+#include "chrome/browser/bookmarks/bookmark_service.h"
#include "chrome/browser/history/history_database.h"
#include "chrome/browser/history/history_db_task.h"
#include "chrome/browser/history/history_service.h"
diff --git a/chrome/browser/signin/signin_tracker.h b/chrome/browser/signin/signin_tracker.h
index 54105ae..7948b94 100644
--- a/chrome/browser/signin/signin_tracker.h
+++ b/chrome/browser/signin/signin_tracker.h
@@ -5,7 +5,7 @@
#ifndef CHROME_BROWSER_SIGNIN_SIGNIN_TRACKER_H_
#define CHROME_BROWSER_SIGNIN_SIGNIN_TRACKER_H_
-#include "chrome/browser/api/sync/profile_sync_service_observer.h"
+#include "chrome/browser/sync/profile_sync_service_observer.h"
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
#include "content/public/browser/notification_types.h"
diff --git a/chrome/browser/sync/profile_sync_service.h b/chrome/browser/sync/profile_sync_service.h
index fdacb3b..2bf6d87 100644
--- a/chrome/browser/sync/profile_sync_service.h
+++ b/chrome/browser/sync/profile_sync_service.h
@@ -20,8 +20,6 @@
#include "base/string16.h"
#include "base/time.h"
#include "base/timer.h"
-#include "chrome/browser/api/sync/profile_sync_service_base.h"
-#include "chrome/browser/api/sync/profile_sync_service_observer.h"
#include "chrome/browser/profiles/profile_keyed_service.h"
#include "chrome/browser/signin/signin_global_error.h"
#include "chrome/browser/sync/backend_unrecoverable_error_handler.h"
@@ -32,6 +30,8 @@
#include "chrome/browser/sync/glue/sync_backend_host.h"
#include "chrome/browser/sync/invalidation_frontend.h"
#include "chrome/browser/sync/invalidations/invalidator_storage.h"
+#include "chrome/browser/sync/profile_sync_service_base.h"
+#include "chrome/browser/sync/profile_sync_service_observer.h"
#include "chrome/browser/sync/sync_prefs.h"
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
diff --git a/chrome/browser/sync/profile_sync_service_android.h b/chrome/browser/sync/profile_sync_service_android.h
index 466efc8..1886b81 100644
--- a/chrome/browser/sync/profile_sync_service_android.h
+++ b/chrome/browser/sync/profile_sync_service_android.h
@@ -10,7 +10,7 @@
#include "base/android/jni_helper.h"
#include "base/compiler_specific.h"
-#include "chrome/browser/api/sync/profile_sync_service_observer.h"
+#include "chrome/browser/sync/profile_sync_service_observer.h"
#include "sync/internal_api/public/base/model_type.h"
class Profile;
diff --git a/chrome/browser/sync/profile_sync_service_base.cc b/chrome/browser/sync/profile_sync_service_base.cc
new file mode 100644
index 0000000..0ba8300
--- /dev/null
+++ b/chrome/browser/sync/profile_sync_service_base.cc
@@ -0,0 +1,16 @@
+// Copyright 2013 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.
+
+#include "chrome/browser/sync/profile_sync_service_base.h"
+
+#include "chrome/browser/profiles/profile.h"
+#include "chrome/browser/sync/profile_sync_service.h"
+#include "chrome/browser/sync/profile_sync_service_factory.h"
+
+// static
+ProfileSyncServiceBase* ProfileSyncServiceBase::FromBrowserContext(
+ content::BrowserContext* context) {
+ return ProfileSyncServiceFactory::GetForProfile(
+ static_cast<Profile*>(context));
+}
diff --git a/chrome/browser/api/sync/profile_sync_service_base.h b/chrome/browser/sync/profile_sync_service_base.h
index f404bcb..dfb5386 100644
--- a/chrome/browser/api/sync/profile_sync_service_base.h
+++ b/chrome/browser/sync/profile_sync_service_base.h
@@ -2,10 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_API_SYNC_PROFILE_SYNC_SERVICE_BASE_H_
-#define CHROME_BROWSER_API_SYNC_PROFILE_SYNC_SERVICE_BASE_H_
+#ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_BASE_H_
+#define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_BASE_H_
-#include "chrome/browser/api/sync/profile_sync_service_observer.h"
+#include "chrome/browser/sync/profile_sync_service_observer.h"
#include "sync/internal_api/public/base/model_type.h"
namespace content {
@@ -45,4 +45,4 @@ class ProfileSyncServiceBase {
virtual bool HasObserver(Observer* observer) const = 0;
};
-#endif // CHROME_BROWSER_API_SYNC_PROFILE_SYNC_SERVICE_BASE_H_
+#endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_BASE_H_
diff --git a/chrome/browser/sync/profile_sync_service_factory.cc b/chrome/browser/sync/profile_sync_service_factory.cc
index 79e0888..e1d223a 100644
--- a/chrome/browser/sync/profile_sync_service_factory.cc
+++ b/chrome/browser/sync/profile_sync_service_factory.cc
@@ -47,13 +47,6 @@ ProfileSyncService* ProfileSyncServiceFactory::GetForProfile(
GetInstance()->GetServiceForProfile(profile, true));
}
-// static
-ProfileSyncServiceBase* ProfileSyncServiceBase::FromBrowserContext(
- content::BrowserContext* context) {
- return ProfileSyncServiceFactory::GetForProfile(
- static_cast<Profile*>(context));
-}
-
ProfileSyncServiceFactory::ProfileSyncServiceFactory()
: ProfileKeyedServiceFactory("ProfileSyncService",
ProfileDependencyManager::GetInstance()) {
diff --git a/chrome/browser/sync/profile_sync_service_harness.h b/chrome/browser/sync/profile_sync_service_harness.h
index f6b55a3..2a67700 100644
--- a/chrome/browser/sync/profile_sync_service_harness.h
+++ b/chrome/browser/sync/profile_sync_service_harness.h
@@ -10,9 +10,9 @@
#include "base/basictypes.h"
#include "base/compiler_specific.h"
-#include "chrome/browser/api/sync/profile_sync_service_observer.h"
#include "chrome/browser/sync/backend_migrator.h"
#include "chrome/browser/sync/profile_sync_service.h"
+#include "chrome/browser/sync/profile_sync_service_observer.h"
#include "chrome/browser/sync/retry_verifier.h"
#include "sync/internal_api/public/base/model_type.h"
diff --git a/chrome/browser/api/sync/profile_sync_service_observer.h b/chrome/browser/sync/profile_sync_service_observer.h
index 8e1d4f9..de8c997 100644
--- a/chrome/browser/api/sync/profile_sync_service_observer.h
+++ b/chrome/browser/sync/profile_sync_service_observer.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_API_SYNC_PROFILE_SYNC_SERVICE_OBSERVER_H_
-#define CHROME_BROWSER_API_SYNC_PROFILE_SYNC_SERVICE_OBSERVER_H_
+#ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_OBSERVER_H_
+#define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_OBSERVER_H_
// Various UI components such as the New Tab page can be driven by observing
// the ProfileSyncService through this interface.
@@ -20,4 +20,4 @@ class ProfileSyncServiceObserver {
virtual ~ProfileSyncServiceObserver() { }
};
-#endif // CHROME_BROWSER_API_SYNC_PROFILE_SYNC_SERVICE_OBSERVER_H_
+#endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_OBSERVER_H_
diff --git a/chrome/browser/sync/profile_sync_test_util.h b/chrome/browser/sync/profile_sync_test_util.h
index a9e2dd5..509bcf5 100644
--- a/chrome/browser/sync/profile_sync_test_util.h
+++ b/chrome/browser/sync/profile_sync_test_util.h
@@ -10,7 +10,7 @@
#include "base/memory/ref_counted.h"
#include "base/message_loop.h"
#include "base/synchronization/waitable_event.h"
-#include "chrome/browser/api/sync/profile_sync_service_observer.h"
+#include "chrome/browser/sync/profile_sync_service_observer.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/notification_service.h"
#include "content/public/browser/notification_source.h"
diff --git a/chrome/browser/sync/sync_global_error.cc b/chrome/browser/sync/sync_global_error.cc
index 1e539c8..e884592 100644
--- a/chrome/browser/sync/sync_global_error.cc
+++ b/chrome/browser/sync/sync_global_error.cc
@@ -5,8 +5,8 @@
#include "chrome/browser/sync/sync_global_error.h"
#include "chrome/app/chrome_command_ids.h"
-#include "chrome/browser/api/sync/profile_sync_service_observer.h"
#include "chrome/browser/sync/profile_sync_service.h"
+#include "chrome/browser/sync/profile_sync_service_observer.h"
#include "chrome/browser/sync/sync_ui_util.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_commands.h"
diff --git a/chrome/browser/sync/sync_global_error.h b/chrome/browser/sync/sync_global_error.h
index 60e3bec..7355386 100644
--- a/chrome/browser/sync/sync_global_error.h
+++ b/chrome/browser/sync/sync_global_error.h
@@ -7,7 +7,7 @@
#include "base/basictypes.h"
#include "base/compiler_specific.h"
-#include "chrome/browser/api/sync/profile_sync_service_observer.h"
+#include "chrome/browser/sync/profile_sync_service_observer.h"
#include "chrome/browser/ui/global_error/global_error.h"
class ProfileSyncService;
diff --git a/chrome/browser/sync_file_system/sync_file_system_service.h b/chrome/browser/sync_file_system/sync_file_system_service.h
index 119c092..63c0cfd 100644
--- a/chrome/browser/sync_file_system/sync_file_system_service.h
+++ b/chrome/browser/sync_file_system/sync_file_system_service.h
@@ -13,8 +13,8 @@
#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
#include "base/observer_list.h"
-#include "chrome/browser/api/sync/profile_sync_service_observer.h"
#include "chrome/browser/profiles/profile_keyed_service.h"
+#include "chrome/browser/sync/profile_sync_service_observer.h"
#include "chrome/browser/sync_file_system/conflict_resolution_policy.h"
#include "chrome/browser/sync_file_system/file_status_observer.h"
#include "chrome/browser/sync_file_system/local_file_sync_service.h"
diff --git a/chrome/browser/ui/ash/app_sync_ui_state.h b/chrome/browser/ui/ash/app_sync_ui_state.h
index 021b0d6..225232b 100644
--- a/chrome/browser/ui/ash/app_sync_ui_state.h
+++ b/chrome/browser/ui/ash/app_sync_ui_state.h
@@ -9,8 +9,8 @@
#include "base/compiler_specific.h"
#include "base/observer_list.h"
#include "base/timer.h"
-#include "chrome/browser/api/sync/profile_sync_service_observer.h"
#include "chrome/browser/profiles/profile_keyed_service.h"
+#include "chrome/browser/sync/profile_sync_service_observer.h"
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
diff --git a/chrome/browser/ui/autofill/tab_autofill_manager_delegate.h b/chrome/browser/ui/autofill/tab_autofill_manager_delegate.h
index 13cb81f..3ee4b2a 100644
--- a/chrome/browser/ui/autofill/tab_autofill_manager_delegate.h
+++ b/chrome/browser/ui/autofill/tab_autofill_manager_delegate.h
@@ -8,7 +8,7 @@
#include "base/callback.h"
#include "base/compiler_specific.h"
#include "base/memory/weak_ptr.h"
-#include "chrome/browser/api/sync/profile_sync_service_observer.h"
+#include "chrome/browser/sync/profile_sync_service_observer.h"
#include "chrome/browser/ui/autofill/autofill_dialog_types.h"
#include "components/autofill/browser/autofill_manager_delegate.h"
#include "content/public/browser/web_contents_observer.h"
diff --git a/chrome/browser/ui/webui/options/browser_options_handler.h b/chrome/browser/ui/webui/options/browser_options_handler.h
index 095a1ee..36e555d 100644
--- a/chrome/browser/ui/webui/options/browser_options_handler.h
+++ b/chrome/browser/ui/webui/options/browser_options_handler.h
@@ -9,11 +9,11 @@
#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
#include "base/prefs/public/pref_member.h"
-#include "chrome/browser/api/sync/profile_sync_service_observer.h"
#include "chrome/browser/printing/cloud_print/cloud_print_setup_handler.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/search_engines/template_url_service_observer.h"
#include "chrome/browser/shell_integration.h"
+#include "chrome/browser/sync/profile_sync_service_observer.h"
#include "chrome/browser/ui/webui/options/options_ui.h"
#include "ui/base/models/table_model_observer.h"
#include "ui/shell_dialogs/select_file_dialog.h"