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

Side by Side Diff: components/translate/content/common/standalone_cld_data_source.cc

Issue 461633002: Refactor language detection logic to allow non-static CLD data sources. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Make some of the harness factory methods private Created 6 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "cld_data_source.h"
6
7 namespace translate {
8
9 std::string CldDataSource::GetName() {
10 return "standalone";
11 }
12
13 bool CldDataSource::ShouldRegisterForComponentUpdates() {
14 return false;
15 }
16
17 bool CldDataSource::ShouldUseStandaloneDataFile() {
18 return true;
19 }
20
21 } // namespace translate
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698