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

Unified Diff: components/translate/common/translate_constants.cc

Issue 25531002: Move language detection to a component (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Minor changes Created 7 years, 2 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/translate/common/translate_constants.cc
diff --git a/content/browser/power_save_blocker_android.h b/components/translate/common/translate_constants.cc
similarity index 51%
copy from content/browser/power_save_blocker_android.h
copy to components/translate/common/translate_constants.cc
index 1df7d697b53df6b968363eed4551f2b3e10faef3..a51bb9349801d031f545cdbc037a8c8c34a98ac4 100644
--- a/content/browser/power_save_blocker_android.h
+++ b/components/translate/common/translate_constants.cc
@@ -2,10 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include <jni.h>
+#include "components/translate/common/translate_constants.h"
-namespace content {
+namespace translate {
-bool RegisterPowerSaveBlocker(JNIEnv* env);
+const char* const kUnknownLanguageCode = "und";
-} // namespace content
+} // namespace translate

Powered by Google App Engine
This is Rietveld 408576698