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

Unified Diff: components/machine_intelligence/ranker_model.h

Issue 2925733002: Move ranker_model_loader to a new component. (Closed)
Patch Set: Adressing sdefresne's comments. Created 3 years, 6 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
Index: components/machine_intelligence/ranker_model.h
diff --git a/components/translate/core/browser/ranker_model.h b/components/machine_intelligence/ranker_model.h
similarity index 75%
rename from components/translate/core/browser/ranker_model.h
rename to components/machine_intelligence/ranker_model.h
index 93ed757ecce774bfb4fd4fef52918dba30e147b9..80aa32abb7d283322e04cb0c55ebe7b3c28c9ae2 100644
--- a/components/translate/core/browser/ranker_model.h
+++ b/components/machine_intelligence/ranker_model.h
@@ -2,19 +2,18 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef COMPONENTS_TRANSLATE_CORE_BROWSER_RANKER_MODEL_H_
-#define COMPONENTS_TRANSLATE_CORE_BROWSER_RANKER_MODEL_H_
+#ifndef COMPONENTS_MACHINE_INTELLIGENCE_RANKER_MODEL_H_
+#define COMPONENTS_MACHINE_INTELLIGENCE_RANKER_MODEL_H_
#include <memory>
#include <string>
#include "base/macros.h"
-namespace chrome_intelligence {
+namespace machine_intelligence {
class RankerModelProto;
-// Wrapper class for chrome_intelligence::TranslateRankerProto.
class RankerModel {
public:
RankerModel();
@@ -41,6 +40,6 @@ class RankerModel {
DISALLOW_COPY_AND_ASSIGN(RankerModel);
};
-} // namesapce chrome_intelligence
+} // namespace machine_intelligence
-#endif // COMPONENTS_TRANSLATE_CORE_BROWSER_RANKER_MODEL_H_
+#endif // COMPONENTS_MACHINE_INTELLIGENCE_RANKER_MODEL_H_
« no previous file with comments | « components/machine_intelligence/proto/translate_ranker_model.proto ('k') | components/machine_intelligence/ranker_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698