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

Side by Side Diff: chrome/browser/sync/internal_api/sync_manager.cc

Issue 8587017: [Sync] Add version info to about:sync (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 9 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/sync/internal_api/sync_manager.h ('k') | chrome/browser/sync/sync_ui_util.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « chrome/browser/sync/internal_api/sync_manager.h ('k') | chrome/browser/sync/sync_ui_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698