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

Unified Diff: components/translate/content/common/component_cld_data_source.cc

Issue 424123003: Replace the use of CLD_DATA_FROM* and CLD-related ifdefs with runtime checks. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 5 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/translate/content/common/component_cld_data_source.cc
diff --git a/components/translate/content/common/component_cld_data_source.cc b/components/translate/content/common/component_cld_data_source.cc
index cc493fce0c1ab27b7f2b6e2abd749c23a1df0822..59a4ae9d5a10daa72d06675af81669cee658bcb5 100644
--- a/components/translate/content/common/component_cld_data_source.cc
+++ b/components/translate/content/common/component_cld_data_source.cc
@@ -10,4 +10,12 @@ namespace translate {
return "component";
}
+ bool CldDataSource::ShouldRegisterForComponentUpdates() {
+ return true;
+ }
+
+ bool CldDataSource::ShouldUseStandaloneDataFile() {
+ return false;
+ }
+
} // namespace translate

Powered by Google App Engine
This is Rietveld 408576698