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

Unified Diff: components/sync/js/sync_js_controller.cc

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/sync/js/sync_js_controller.h ('k') | components/sync/js/sync_js_controller_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/js/sync_js_controller.cc
diff --git a/sync/js/sync_js_controller.cc b/components/sync/js/sync_js_controller.cc
similarity index 84%
rename from sync/js/sync_js_controller.cc
rename to components/sync/js/sync_js_controller.cc
index 42199d29972ba9730992c05e8ebf1f2a5d137cd4..087d20eaa311fa450262671c63acbace2260ed3f 100644
--- a/sync/js/sync_js_controller.cc
+++ b/components/sync/js/sync_js_controller.cc
@@ -2,11 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "sync/js/sync_js_controller.h"
+#include "components/sync/js/sync_js_controller.h"
#include "base/location.h"
-#include "sync/js/js_backend.h"
-#include "sync/js/js_event_details.h"
+#include "components/sync/js/js_backend.h"
+#include "components/sync/js/js_event_details.h"
namespace syncer {
@@ -44,8 +44,9 @@ void SyncJsController::UpdateBackendEventHandler() {
// event handler we pass to it if we don't have any event
// handlers.
WeakHandle<JsEventHandler> backend_event_handler =
- js_event_handlers_.might_have_observers() ?
- MakeWeakHandle(AsWeakPtr()) : WeakHandle<SyncJsController>();
+ js_event_handlers_.might_have_observers()
+ ? MakeWeakHandle(AsWeakPtr())
+ : WeakHandle<SyncJsController>();
js_backend_.Call(FROM_HERE, &JsBackend::SetJsEventHandler,
backend_event_handler);
}
« no previous file with comments | « components/sync/js/sync_js_controller.h ('k') | components/sync/js/sync_js_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698