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

Unified Diff: chrome/browser/sync/glue/sync_backend_host.cc

Issue 8234013: Add a content::GetUserAgent() to wrap webkit_glue::GetUserAgent() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: clarify requirements around GetUserAgent Created 9 years, 2 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/glue/sync_backend_host.cc
diff --git a/chrome/browser/sync/glue/sync_backend_host.cc b/chrome/browser/sync/glue/sync_backend_host.cc
index 1a322cbb216dbfaff720748fd18d9c3695fe7b3c..66ef592fc06d02a8d17b91c7022aed62faea2813 100644
--- a/chrome/browser/sync/glue/sync_backend_host.cc
+++ b/chrome/browser/sync/glue/sync_backend_host.cc
@@ -33,8 +33,8 @@
#include "chrome/common/chrome_version_info.h"
#include "chrome/common/net/gaia/gaia_constants.h"
#include "content/browser/browser_thread.h"
+#include "content/common/content_client.h"
#include "content/common/notification_service.h"
-#include "webkit/glue/webkit_glue.h"
static const int kSaveChangesIntervalSeconds = 10;
static const FilePath::CharType kSyncDataFolderName[] =
@@ -66,7 +66,7 @@ SyncBackendHost::SyncBackendHost(const std::string& name,
profile_(profile),
sync_prefs_(sync_prefs),
name_(name),
- sync_notifier_factory_(webkit_glue::GetUserAgent(GURL()),
+ sync_notifier_factory_(content::GetUserAgent(GURL()),
profile_->GetRequestContext(),
*CommandLine::ForCurrentProcess()),
frontend_(NULL),
@@ -83,7 +83,7 @@ SyncBackendHost::SyncBackendHost()
profile_(NULL),
sync_prefs_(NULL),
name_("Unknown"),
- sync_notifier_factory_(webkit_glue::GetUserAgent(GURL()),
+ sync_notifier_factory_(content::GetUserAgent(GURL()),
NULL,
*CommandLine::ForCurrentProcess()),
frontend_(NULL),
« no previous file with comments | « chrome/browser/sync/glue/http_bridge.cc ('k') | chrome/browser/ui/webui/options/chromeos/about_page_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698