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

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

Issue 422843009: Add a new CldDataSource class that can be queried at runtime. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add BUILD.gn 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/core/common/translate_constants.cc b/components/translate/content/common/static_cld_data_source.cc
similarity index 65%
copy from components/translate/core/common/translate_constants.cc
copy to components/translate/content/common/static_cld_data_source.cc
index 7b2034e5ad164ac450f67f379497929733191ab5..b744abbe2ff79c68fea67379bcc29d0b00ea1eff 100644
--- a/components/translate/core/common/translate_constants.cc
+++ b/components/translate/content/common/static_cld_data_source.cc
@@ -2,10 +2,12 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "components/translate/core/common/translate_constants.h"
+#include "cld_data_source.h"
namespace translate {
-const char* const kUnknownLanguageCode = "und";
+ std::string CldDataSource::GetName() {
+ return "static";
+ }
} // 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