Chromium Code Reviews

Side by Side 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, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cld_data_source.h" 5 #include "cld_data_source.h"
6 6
7 namespace translate { 7 namespace translate {
8 8
9 std::string CldDataSource::GetName() { 9 std::string CldDataSource::GetName() {
10 return "component"; 10 return "component";
11 } 11 }
12
13 bool CldDataSource::ShouldRegisterForComponentUpdates() {
14 return true;
15 }
16
17 bool CldDataSource::ShouldUseStandaloneDataFile() {
18 return false;
19 }
12 20
13 } // namespace translate 21 } // namespace translate
OLDNEW

Powered by Google App Engine