| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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.chrome.browser.enhancedbookmarks; | 5 package org.chromium.chrome.browser.enhancedbookmarks; |
| 6 | 6 |
| 7 import android.os.Bundle; | 7 import android.os.Bundle; |
| 8 | 8 |
| 9 import org.chromium.base.ObserverList; | 9 import org.chromium.base.ObserverList; |
| 10 import org.chromium.base.metrics.RecordUserAction; | 10 import org.chromium.base.metrics.RecordUserAction; |
| 11 import org.chromium.chrome.browser.firstrun.ProfileDataCache; | 11 import org.chromium.chrome.browser.firstrun.ProfileDataCache; |
| 12 import org.chromium.chrome.browser.ntp.RecentTabsPromoView; | 12 import org.chromium.chrome.browser.ntp.RecentTabsPromoView; |
| 13 import org.chromium.chrome.browser.ntp.RecentTabsPromoView.SyncPromoModel; | 13 import org.chromium.chrome.browser.ntp.RecentTabsPromoView.SyncPromoModel; |
| 14 import org.chromium.chrome.browser.ntp.RecentTabsPromoView.UserActionListener; | 14 import org.chromium.chrome.browser.ntp.RecentTabsPromoView.UserActionListener; |
| 15 import org.chromium.chrome.browser.profiles.Profile; | 15 import org.chromium.chrome.browser.profiles.Profile; |
| 16 import org.chromium.chrome.browser.signin.SigninAccessPoint; |
| 16 import org.chromium.chrome.browser.signin.SigninManager; | 17 import org.chromium.chrome.browser.signin.SigninManager; |
| 17 import org.chromium.chrome.browser.signin.SigninManager.SignInStateObserver; | 18 import org.chromium.chrome.browser.signin.SigninManager.SignInStateObserver; |
| 18 import org.chromium.chrome.browser.sync.ProfileSyncService; | 19 import org.chromium.chrome.browser.sync.ProfileSyncService; |
| 19 import org.chromium.sync.AndroidSyncSettings; | 20 import org.chromium.sync.AndroidSyncSettings; |
| 20 import org.chromium.sync.AndroidSyncSettings.AndroidSyncSettingsObserver; | 21 import org.chromium.sync.AndroidSyncSettings.AndroidSyncSettingsObserver; |
| 21 import org.chromium.sync.signin.ChromeSigninController; | 22 import org.chromium.sync.signin.ChromeSigninController; |
| 22 | 23 |
| 23 /** | 24 /** |
| 24 * Sign in promotion activity that is triggered from enhanced bookmark UI. | 25 * Sign in promotion activity that is triggered from enhanced bookmark UI. |
| 25 */ | 26 */ |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 RecordUserAction.record("Signin_AddAccountToDevice"); | 130 RecordUserAction.record("Signin_AddAccountToDevice"); |
| 130 } | 131 } |
| 131 | 132 |
| 132 @Override | 133 @Override |
| 133 public ProfileDataCache getProfileDataCache() { | 134 public ProfileDataCache getProfileDataCache() { |
| 134 if (mProfileDataCache == null) { | 135 if (mProfileDataCache == null) { |
| 135 mProfileDataCache = new ProfileDataCache(this, Profile.getLastUsedPr
ofile()); | 136 mProfileDataCache = new ProfileDataCache(this, Profile.getLastUsedPr
ofile()); |
| 136 } | 137 } |
| 137 return mProfileDataCache; | 138 return mProfileDataCache; |
| 138 } | 139 } |
| 140 |
| 141 @Override |
| 142 public int getAccessPoint() { |
| 143 return SigninAccessPoint.BOOKMARK_MANAGER; |
| 144 } |
| 139 } | 145 } |
| OLD | NEW |