| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "chrome/browser/sync/internal_api/sync_manager.h" | 5 #include "chrome/browser/sync/internal_api/sync_manager.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/base64.h" | 9 #include "base/base64.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 918 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 929 std::string state; | 929 std::string state; |
| 930 if (lookup.good()) { | 930 if (lookup.good()) { |
| 931 unique_id = lookup->cache_guid(); | 931 unique_id = lookup->cache_guid(); |
| 932 state = lookup->GetNotificationState(); | 932 state = lookup->GetNotificationState(); |
| 933 VLOG(1) << "Read notification unique ID: " << unique_id; | 933 VLOG(1) << "Read notification unique ID: " << unique_id; |
| 934 if (VLOG_IS_ON(1)) { | 934 if (VLOG_IS_ON(1)) { |
| 935 std::string encoded_state; | 935 std::string encoded_state; |
| 936 base::Base64Encode(state, &encoded_state); | 936 base::Base64Encode(state, &encoded_state); |
| 937 VLOG(1) << "Read notification state: " << encoded_state; | 937 VLOG(1) << "Read notification state: " << encoded_state; |
| 938 } | 938 } |
| 939 allstatus_.SetUniqueId(unique_id); |
| 939 } else { | 940 } else { |
| 940 LOG(ERROR) << "Could not read notification unique ID/state"; | 941 LOG(ERROR) << "Could not read notification unique ID/state"; |
| 941 } | 942 } |
| 942 sync_notifier_->SetUniqueId(unique_id); | 943 sync_notifier_->SetUniqueId(unique_id); |
| 943 sync_notifier_->SetState(state); | 944 sync_notifier_->SetState(state); |
| 944 | 945 |
| 945 UpdateCredentials(credentials); | 946 UpdateCredentials(credentials); |
| 946 UpdateEnabledTypes(); | 947 UpdateEnabledTypes(); |
| 947 return true; | 948 return true; |
| 948 } | 949 } |
| (...skipping 1160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2109 lookup->GetDownloadProgress(*i, &marker); | 2110 lookup->GetDownloadProgress(*i, &marker); |
| 2110 | 2111 |
| 2111 if (marker.token().empty()) | 2112 if (marker.token().empty()) |
| 2112 result.insert(*i); | 2113 result.insert(*i); |
| 2113 | 2114 |
| 2114 } | 2115 } |
| 2115 return result; | 2116 return result; |
| 2116 } | 2117 } |
| 2117 | 2118 |
| 2118 } // namespace sync_api | 2119 } // namespace sync_api |
| OLD | NEW |