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

Side by Side Diff: components/sync/android/java/src/org/chromium/components/sync/SystemSyncContentResolverDelegate.java

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, 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2010 The Chromium Authors. All rights reserved. 1 // Copyright 2010 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 package org.chromium.sync; 5 package org.chromium.components.sync;
6
7 6
8 import android.accounts.Account; 7 import android.accounts.Account;
9 import android.content.ContentResolver; 8 import android.content.ContentResolver;
10 import android.content.SyncStatusObserver; 9 import android.content.SyncStatusObserver;
11 import android.os.Bundle; 10 import android.os.Bundle;
12 11
13 /** 12 /**
14 * A SyncContentResolverDelegate that simply forwards calls to ContentResolver. 13 * A SyncContentResolverDelegate that simply forwards calls to ContentResolver.
15 */ 14 */
16 public class SystemSyncContentResolverDelegate implements SyncContentResolverDel egate { 15 public class SystemSyncContentResolverDelegate implements SyncContentResolverDel egate {
17
18 @Override 16 @Override
19 public Object addStatusChangeListener(int mask, SyncStatusObserver callback) { 17 public Object addStatusChangeListener(int mask, SyncStatusObserver callback) {
20 return ContentResolver.addStatusChangeListener(mask, callback); 18 return ContentResolver.addStatusChangeListener(mask, callback);
21 } 19 }
22 20
23 @Override 21 @Override
24 public void removeStatusChangeListener(Object handle) { 22 public void removeStatusChangeListener(Object handle) {
25 ContentResolver.removeStatusChangeListener(handle); 23 ContentResolver.removeStatusChangeListener(handle);
26 } 24 }
27 25
(...skipping 25 matching lines...) Expand all
53 @Override 51 @Override
54 public int getIsSyncable(Account account, String authority) { 52 public int getIsSyncable(Account account, String authority) {
55 return ContentResolver.getIsSyncable(account, authority); 53 return ContentResolver.getIsSyncable(account, authority);
56 } 54 }
57 55
58 @Override 56 @Override
59 public void removePeriodicSync(Account account, String authority, Bundle ext ras) { 57 public void removePeriodicSync(Account account, String authority, Bundle ext ras) {
60 ContentResolver.removePeriodicSync(account, authority, extras); 58 ContentResolver.removePeriodicSync(account, authority, extras);
61 } 59 }
62 } 60 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698