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

Unified Diff: chrome/browser/sync/notifier/server_notifier_thread.cc

Issue 6310015: [Sync] Roll cache-invalidation to @70 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compile failure Created 9 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/sync/notifier/server_notifier_thread.cc
diff --git a/chrome/browser/sync/notifier/server_notifier_thread.cc b/chrome/browser/sync/notifier/server_notifier_thread.cc
index 0c123c89b56d8fcd93221accb4116fcbcf23109e..ae15943145af39e2ba8a28ee2adc957db7e66d94 100644
--- a/chrome/browser/sync/notifier/server_notifier_thread.cc
+++ b/chrome/browser/sync/notifier/server_notifier_thread.cc
@@ -9,9 +9,11 @@
#include "base/logging.h"
#include "chrome/browser/sync/notifier/chrome_invalidation_client.h"
+#include "googleurl/src/gurl.h"
#include "jingle/notifier/base/notifier_options.h"
#include "jingle/notifier/listener/notification_defines.h"
#include "talk/xmpp/xmppclient.h"
+#include "webkit/glue/webkit_glue.h"
namespace sync_notifier {
@@ -113,8 +115,11 @@ void ServerNotifierThread::DoListenForUpdates() {
// make it so that we won't receive any notifications that were
// generated from our own changes.
const std::string kClientId = "server_notifier_thread";
+ // Use user agent as |client_info| so we can use it for debugging
+ // server-side.
+ const std::string& client_info = webkit_glue::GetUserAgent(GURL());
chrome_invalidation_client_->Start(
- kClientId, state_, this, this, base_task_);
+ kClientId, client_info, state_, this, this, base_task_);
state_.clear();
}
}

Powered by Google App Engine
This is Rietveld 408576698