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

Unified Diff: chrome/browser/profiles/profile_downloader_unittest.cc

Issue 23095006: If user profile doesn't contain language setting, default to his Google account settings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix shared build. Created 7 years, 4 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/profiles/profile_downloader_unittest.cc
diff --git a/chrome/browser/profiles/profile_downloader_unittest.cc b/chrome/browser/profiles/profile_downloader_unittest.cc
index 11646d34984bdb8d7ba3dd672ff00bea6a7cc33e..447ad06c9cde47ae2a782fcb104cfe846cfe98af 100644
--- a/chrome/browser/profiles/profile_downloader_unittest.cc
+++ b/chrome/browser/profiles/profile_downloader_unittest.cc
@@ -36,8 +36,9 @@ class ProfileDownloaderTest : public testing::Test {
bool is_valid) {
string16 parsed_name;
std::string parsed_url;
- bool result = ProfileDownloader::GetProfileNameAndImageURL(
- GetJSonData(name, url), &parsed_name, &parsed_url, 32);
+ std::string parsed_locale;
+ bool result = ProfileDownloader::ParseProfileJSON(
+ GetJSonData(name, url), &parsed_name, &parsed_url, 32, &parsed_locale);
EXPECT_EQ(is_valid, result);
std::string parsed_name_utf8 = UTF16ToUTF8(parsed_name);
EXPECT_EQ(name, parsed_name_utf8);

Powered by Google App Engine
This is Rietveld 408576698