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

Side by Side Diff: components/translate/core/common/translate_switches.cc

Issue 2565873002: [translate] Add translate ranker model loader. (Closed)
Patch Set: comments from hamelphi Created 3 years, 11 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 unified diff | Download patch
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 "components/translate/core/common/translate_switches.h" 5 #include "components/translate/core/common/translate_switches.h"
6 6
7 namespace translate { 7 namespace translate {
8 namespace switches { 8 namespace switches {
9 9
10 // Allows disabling of translate from the command line to assist with automated 10 // Allows disabling of translate from the command line to assist with automated
11 // browser testing (e.g. Selenium/WebDriver). Normal browser users should 11 // browser testing (e.g. Selenium/WebDriver). Normal browser users should
12 // disable translate with the preference. 12 // disable translate with the preference.
13 const char kDisableTranslate[] = "disable-translate"; 13 const char kDisableTranslate[] = "disable-translate";
14 14
15 // Overrides the default server used for Google Translate. 15 // Overrides the default server used for Google Translate.
16 const char kTranslateScriptURL[] = "translate-script-url"; 16 const char kTranslateScriptURL[] = "translate-script-url";
17 17
18 // Overrides security-origin with which Translate runs in an isolated world. 18 // Overrides security-origin with which Translate runs in an isolated world.
19 const char kTranslateSecurityOrigin[] = "translate-security-origin"; 19 const char kTranslateSecurityOrigin[] = "translate-security-origin";
20 20
21 // Overrides the URL from which the translate ranker model is downloaded. 21 // Overrides the URL from which the translate ranker model is downloaded.
22 const char kTranslateRankerModelURL[] = "translate-ranker-model-url"; 22 const char kTranslateRankerModelURL[] = "translate-ranker-model-url";
23 23
24 // Overrides the path in which the translate ranker model is cached.
25 const char kTranslateRankerModelPath[] = "translate-ranker-model-path";
groby-ooo-7-16 2017/01/23 21:41:57 Do we really need this switch?
Roger McFarlane (Chromium) 2017/02/08 23:08:13 It was intended to allow for testing of a particul
24 } // namespace switches 26 } // namespace switches
25 } // namespace translate 27 } // namespace translate
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698