Index: chrome/browser/search_engines/template_url_service_test_util.cc |
diff --git a/chrome/browser/search_engines/template_url_service_test_util.cc b/chrome/browser/search_engines/template_url_service_test_util.cc |
index 356b05ae19555a99fcd11638e0dab05221234b59..41f1ebe3ba0ef446276bc872736041f23cfef1e8 100644 |
--- a/chrome/browser/search_engines/template_url_service_test_util.cc |
+++ b/chrome/browser/search_engines/template_url_service_test_util.cc |
@@ -23,6 +23,10 @@ |
#include "content/public/test/test_browser_thread.h" |
#include "testing/gtest/include/gtest/gtest.h" |
+#if defined(OS_ANDROID) |
+#include "chrome/browser/search_engines/template_url_prepopulate_data.h" |
+#endif |
+ |
using content::BrowserThread; |
namespace { |
@@ -114,6 +118,9 @@ void TemplateURLServiceTestingProfile::SetUp() { |
ASSERT_TRUE(temp_dir_.CreateUniqueTempDir()); |
FilePath path = temp_dir_.path().AppendASCII("TestDataService.db"); |
+#if defined(OS_ANDROID) |
+ TemplateURLPrepopulateData::InitCountryCode("US"); |
sky
2012/11/19 22:50:01
This seems like a more fundamental problem. Should
michaelbai
2012/11/19 23:05:38
Did you mean TestingProfile?
On 2012/11/19 22:50:
Peter Kasting
2012/11/20 04:06:13
Yes, but really this is just wrong anyway. No tes
michaelbai
2012/11/20 19:03:33
It looks like the original author want to be warne
|
+#endif |
service_ = new WebDataService; |
ASSERT_TRUE(service_->InitWithPath(path)); |
} |