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

Unified Diff: components/translate/content/common/static_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
« no previous file with comments | « components/translate/content/common/standalone_cld_data_source.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/translate/content/common/static_cld_data_source.cc
diff --git a/components/translate/content/common/static_cld_data_source.cc b/components/translate/content/common/static_cld_data_source.cc
index b744abbe2ff79c68fea67379bcc29d0b00ea1eff..5673b430a3dc756750295d359e56c8cbd9fb5706 100644
--- a/components/translate/content/common/static_cld_data_source.cc
+++ b/components/translate/content/common/static_cld_data_source.cc
@@ -6,8 +6,16 @@
namespace translate {
- std::string CldDataSource::GetName() {
- return "static";
- }
+std::string CldDataSource::GetName() {
+ return "static";
+}
+
+bool CldDataSource::ShouldRegisterForComponentUpdates() {
+ return false;
+}
+
+bool CldDataSource::ShouldUseStandaloneDataFile() {
+ return false;
+}
} // namespace translate
« no previous file with comments | « components/translate/content/common/standalone_cld_data_source.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698