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

Unified Diff: ui/gfx/android/device_info.cc

Issue 11886074: Use correct favicon scale factor on Android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Correct name in the include guard. Created 7 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 side-by-side diff with in-line comments
Download patch
Index: ui/gfx/android/device_info.cc
diff --git a/content/common/android/device_info.cc b/ui/gfx/android/device_info.cc
similarity index 93%
rename from content/common/android/device_info.cc
rename to ui/gfx/android/device_info.cc
index 2522cae160aa0b60925ba4c9e5cace2519502182..f28fcf347ef681fdd2a6f083f820dbc0939c1405 100644
--- a/content/common/android/device_info.cc
+++ b/ui/gfx/android/device_info.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "content/common/android/device_info.h"
+#include "ui/gfx/android/device_info.h"
#include "base/android/jni_android.h"
#include "base/android/jni_string.h"
@@ -13,7 +13,7 @@ using base::android::AttachCurrentThread;
using base::android::ConvertJavaStringToUTF8;
using base::android::ScopedJavaLocalRef;
-namespace content {
+namespace gfx {
DeviceInfo::DeviceInfo() {
JNIEnv* env = AttachCurrentThread();
@@ -73,8 +73,9 @@ std::string DeviceInfo::GetNetworkCountryIso() {
return ConvertJavaStringToUTF8(result);
}
-bool RegisterDeviceInfo(JNIEnv* env) {
+// static
+bool DeviceInfo::RegisterDeviceInfo(JNIEnv* env) {
return RegisterNativesImpl(env);
}
-} // namespace content
+} // namespace gfx

Powered by Google App Engine
This is Rietveld 408576698