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

Unified Diff: chrome/browser/translate/standalone_cld_data_harness.h

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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/translate/standalone_cld_data_harness.h
diff --git a/chrome/browser/translate/standalone_cld_data_harness.h b/chrome/browser/translate/standalone_cld_data_harness.h
index a9c37d64f5ff556731caad3df50e9f5a546b50d1..08af5e2c81a48065b34aaed1812762961960910b 100644
--- a/chrome/browser/translate/standalone_cld_data_harness.h
+++ b/chrome/browser/translate/standalone_cld_data_harness.h
@@ -5,15 +5,18 @@
#ifndef CHROME_BROWSER_TRANSLATE_STANDALONE_CLD_DATA_HARNESS_H_
#define CHROME_BROWSER_TRANSLATE_STANDALONE_CLD_DATA_HARNESS_H_
+#include "base/macros.h"
#include "chrome/browser/translate/cld_data_harness.h"
namespace test {
+// Utility class that sets up a test harness suitable for injecting a standalone
+// CLD data file into the runtime. See CldDataHarness class for more details.
class StandaloneCldDataHarness : public CldDataHarness {
public:
- StandaloneCldDataHarness();
- virtual ~StandaloneCldDataHarness();
- virtual void Init() override;
+ StandaloneCldDataHarness() {}
+ ~StandaloneCldDataHarness() override;
+ void Init() override;
private:
void GetStandaloneDataFileSource(base::FilePath*);
« no previous file with comments | « chrome/browser/translate/component_cld_data_harness.cc ('k') | chrome/browser/translate/standalone_cld_data_harness.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698