Chromium Code Reviews| Index: chrome/browser/ui/search/search_tab_helper.cc |
| diff --git a/chrome/browser/ui/search/search_tab_helper.cc b/chrome/browser/ui/search/search_tab_helper.cc |
| index f2c34e773db558c7707628ad85ec8b24ad71e745..0952b6a157d2b6b6248a54cb0c1898e9e2e0466d 100644 |
| --- a/chrome/browser/ui/search/search_tab_helper.cc |
| +++ b/chrome/browser/ui/search/search_tab_helper.cc |
| @@ -564,14 +564,15 @@ void SearchTabHelper::OnChromeIdentityCheck(const base::string16& identity) { |
| if (manager) { |
| const base::string16 username = |
| base::UTF8ToUTF16(manager->GetAuthenticatedUsername()); |
| - // The identity check only passes if the user is syncing their history. |
| - // TODO(beaudoin): Change this function name and related APIs now that it's |
| - // checking both the identity and the user's sync state. |
| - bool matches = IsHistorySyncEnabled(profile()) && identity == username; |
| - ipc_router_.SendChromeIdentityCheckResult(identity, matches); |
| + ipc_router_.SendChromeIdentityCheckResult(identity, identity == username); |
| } |
| } |
| +void SearchTabHelper::OnCheckUserSyncHistory() { |
|
Mathieu
2014/11/05 13:38:42
OnHistorySyncCheck
beaudoin
2014/11/05 21:28:21
Done.
|
| + ipc_router_.SendCheckUserSyncHistoryResult( |
| + IsHistorySyncEnabled(profile())); |
| +} |
| + |
| void SearchTabHelper::UpdateMode(bool update_origin, bool is_preloaded_ntp) { |
| SearchMode::Type type = SearchMode::MODE_DEFAULT; |
| SearchMode::Origin origin = SearchMode::ORIGIN_DEFAULT; |