Index: content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java |
diff --git a/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java b/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java |
index 8f4a789b4948d97dd3116cc81d800a7923d53049..b0937fe41f18dc6127c5bec6e8118bfc9a4a03ad 100644 |
--- a/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java |
+++ b/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java |
@@ -664,8 +664,7 @@ |
mEditable = Editable.Factory.getInstance().newEditable(""); |
Selection.setSelection(mEditable, 0); |
mContainerViewObservers = new ObserverList<ContainerViewObserver>(); |
- // Deep copy newConfig so that we can notice the difference. |
- mCurrentConfig = new Configuration(getContext().getResources().getConfiguration()); |
+ mCurrentConfig = getContext().getResources().getConfiguration(); |
} |
/** |
@@ -1618,8 +1617,7 @@ |
// onConfigurationChange and layout has to be changed in most case. |
mContainerView.requestLayout(); |
} finally { |
- // Deep copy newConfig so that we can notice the difference. |
- mCurrentConfig = new Configuration(newConfig); |
+ mCurrentConfig = newConfig; |
TraceEvent.end("ContentViewCore.onConfigurationChanged"); |
} |
} |