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

Unified Diff: components/autofill/browser/risk/fingerprint.cc

Issue 13409003: Hide ContentClient getters from embedders so that they they don't reuse content's embedder API. The… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 9 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: components/autofill/browser/risk/fingerprint.cc
===================================================================
--- components/autofill/browser/risk/fingerprint.cc (revision 192091)
+++ components/autofill/browser/risk/fingerprint.cc (working copy)
@@ -13,8 +13,8 @@
#include "base/time.h"
#include "base/utf_string_conversions.h"
#include "base/values.h"
+#include "components/autofill/browser/autofill_country.h"
#include "components/autofill/browser/risk/proto/fingerprint.pb.h"
-#include "content/public/browser/content_browser_client.h"
#include "content/public/browser/font_list_async.h"
#include "content/public/browser/gpu_data_manager.h"
#include "content/public/browser/gpu_data_manager_observer.h"
@@ -318,10 +318,9 @@
machine->set_browser_install_time_hours(
(install_time_ - base::Time::UnixEpoch()).InHours());
machine->set_utc_offset_ms(GetTimezoneOffset().InMilliseconds());
- machine->set_browser_language(
- content::GetContentClient()->browser()->GetApplicationLocale());
+ machine->set_browser_language(AutofillCountry::ApplicationLocale());
Ilya Sherman 2013/04/03 23:51:18 Can you use g_browser_process->GetApplicationLocal
machine->set_charset(charset_);
- machine->set_user_agent(content::GetContentClient()->GetUserAgent());
+ machine->set_user_agent(content::GetUserAgent(GURL()));
machine->set_ram(base::SysInfo::AmountOfPhysicalMemory());
machine->set_browser_build(version_);
machine->set_browser_feature(DialogTypeToBrowserFeature(dialog_type_));

Powered by Google App Engine
This is Rietveld 408576698