Commit e5e0dd7d authored by ycheo@chromium.org's avatar ycheo@chromium.org

Reuse the locked version to reduce the code duplication.

Review URL: https://codereview.chromium.org/251663003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@266509 0039d316-1c4b-4281-b951-d872f2087c98
parent 65eedf7c
...@@ -524,7 +524,7 @@ public class AwSettings { ...@@ -524,7 +524,7 @@ public class AwSettings {
*/ */
public String getUserAgentString() { public String getUserAgentString() {
synchronized (mAwSettingsLock) { synchronized (mAwSettingsLock) {
return mUserAgent; return getUserAgentLocked();
} }
} }
...@@ -557,7 +557,7 @@ public class AwSettings { ...@@ -557,7 +557,7 @@ public class AwSettings {
*/ */
public boolean getLoadWithOverviewMode() { public boolean getLoadWithOverviewMode() {
synchronized (mAwSettingsLock) { synchronized (mAwSettingsLock) {
return mLoadWithOverviewMode; return getLoadWithOverviewModeLocked();
} }
} }
...@@ -584,7 +584,7 @@ public class AwSettings { ...@@ -584,7 +584,7 @@ public class AwSettings {
*/ */
public int getTextZoom() { public int getTextZoom() {
synchronized (mAwSettingsLock) { synchronized (mAwSettingsLock) {
return mTextSizePercent; return getTextSizePercentLocked();
} }
} }
...@@ -611,7 +611,7 @@ public class AwSettings { ...@@ -611,7 +611,7 @@ public class AwSettings {
*/ */
public String getStandardFontFamily() { public String getStandardFontFamily() {
synchronized (mAwSettingsLock) { synchronized (mAwSettingsLock) {
return mStandardFontFamily; return getStandardFontFamilyLocked();
} }
} }
...@@ -638,7 +638,7 @@ public class AwSettings { ...@@ -638,7 +638,7 @@ public class AwSettings {
*/ */
public String getFixedFontFamily() { public String getFixedFontFamily() {
synchronized (mAwSettingsLock) { synchronized (mAwSettingsLock) {
return mFixedFontFamily; return getFixedFontFamilyLocked();
} }
} }
...@@ -665,7 +665,7 @@ public class AwSettings { ...@@ -665,7 +665,7 @@ public class AwSettings {
*/ */
public String getSansSerifFontFamily() { public String getSansSerifFontFamily() {
synchronized (mAwSettingsLock) { synchronized (mAwSettingsLock) {
return mSansSerifFontFamily; return getSansSerifFontFamilyLocked();
} }
} }
...@@ -692,7 +692,7 @@ public class AwSettings { ...@@ -692,7 +692,7 @@ public class AwSettings {
*/ */
public String getSerifFontFamily() { public String getSerifFontFamily() {
synchronized (mAwSettingsLock) { synchronized (mAwSettingsLock) {
return mSerifFontFamily; return getSerifFontFamilyLocked();
} }
} }
...@@ -719,7 +719,7 @@ public class AwSettings { ...@@ -719,7 +719,7 @@ public class AwSettings {
*/ */
public String getCursiveFontFamily() { public String getCursiveFontFamily() {
synchronized (mAwSettingsLock) { synchronized (mAwSettingsLock) {
return mCursiveFontFamily; return getCursiveFontFamilyLocked();
} }
} }
...@@ -746,7 +746,7 @@ public class AwSettings { ...@@ -746,7 +746,7 @@ public class AwSettings {
*/ */
public String getFantasyFontFamily() { public String getFantasyFontFamily() {
synchronized (mAwSettingsLock) { synchronized (mAwSettingsLock) {
return mFantasyFontFamily; return getFantasyFontFamilyLocked();
} }
} }
...@@ -774,7 +774,7 @@ public class AwSettings { ...@@ -774,7 +774,7 @@ public class AwSettings {
*/ */
public int getMinimumFontSize() { public int getMinimumFontSize() {
synchronized (mAwSettingsLock) { synchronized (mAwSettingsLock) {
return mMinimumFontSize; return getMinimumFontSizeLocked();
} }
} }
...@@ -802,7 +802,7 @@ public class AwSettings { ...@@ -802,7 +802,7 @@ public class AwSettings {
*/ */
public int getMinimumLogicalFontSize() { public int getMinimumLogicalFontSize() {
synchronized (mAwSettingsLock) { synchronized (mAwSettingsLock) {
return mMinimumLogicalFontSize; return getMinimumLogicalFontSizeLocked();
} }
} }
...@@ -830,7 +830,7 @@ public class AwSettings { ...@@ -830,7 +830,7 @@ public class AwSettings {
*/ */
public int getDefaultFontSize() { public int getDefaultFontSize() {
synchronized (mAwSettingsLock) { synchronized (mAwSettingsLock) {
return mDefaultFontSize; return getDefaultFontSizeLocked();
} }
} }
...@@ -858,7 +858,7 @@ public class AwSettings { ...@@ -858,7 +858,7 @@ public class AwSettings {
*/ */
public int getDefaultFixedFontSize() { public int getDefaultFixedFontSize() {
synchronized (mAwSettingsLock) { synchronized (mAwSettingsLock) {
return mDefaultFixedFontSize; return getDefaultFixedFontSizeLocked();
} }
} }
...@@ -921,7 +921,7 @@ public class AwSettings { ...@@ -921,7 +921,7 @@ public class AwSettings {
*/ */
public boolean getLoadsImagesAutomatically() { public boolean getLoadsImagesAutomatically() {
synchronized (mAwSettingsLock) { synchronized (mAwSettingsLock) {
return mLoadsImagesAutomatically; return getLoadsImagesAutomaticallyLocked();
} }
} }
...@@ -978,7 +978,7 @@ public class AwSettings { ...@@ -978,7 +978,7 @@ public class AwSettings {
*/ */
public boolean getAllowUniversalAccessFromFileURLs() { public boolean getAllowUniversalAccessFromFileURLs() {
synchronized (mAwSettingsLock) { synchronized (mAwSettingsLock) {
return mAllowUniversalAccessFromFileURLs; return getAllowUniversalAccessFromFileURLsLocked();
} }
} }
...@@ -993,7 +993,7 @@ public class AwSettings { ...@@ -993,7 +993,7 @@ public class AwSettings {
*/ */
public boolean getAllowFileAccessFromFileURLs() { public boolean getAllowFileAccessFromFileURLs() {
synchronized (mAwSettingsLock) { synchronized (mAwSettingsLock) {
return mAllowFileAccessFromFileURLs; return getAllowFileAccessFromFileURLsLocked();
} }
} }
...@@ -1068,7 +1068,7 @@ public class AwSettings { ...@@ -1068,7 +1068,7 @@ public class AwSettings {
*/ */
public boolean getJavaScriptCanOpenWindowsAutomatically() { public boolean getJavaScriptCanOpenWindowsAutomatically() {
synchronized (mAwSettingsLock) { synchronized (mAwSettingsLock) {
return mJavaScriptCanOpenWindowsAutomatically; return getJavaScriptCanOpenWindowsAutomaticallyLocked();
} }
} }
...@@ -1162,7 +1162,7 @@ public class AwSettings { ...@@ -1162,7 +1162,7 @@ public class AwSettings {
*/ */
public boolean getUseWideViewPort() { public boolean getUseWideViewPort() {
synchronized (mAwSettingsLock) { synchronized (mAwSettingsLock) {
return mUseWideViewport; return getUseWideViewportLocked();
} }
} }
...@@ -1299,7 +1299,7 @@ public class AwSettings { ...@@ -1299,7 +1299,7 @@ public class AwSettings {
*/ */
public String getDefaultTextEncodingName() { public String getDefaultTextEncodingName() {
synchronized (mAwSettingsLock) { synchronized (mAwSettingsLock) {
return mDefaultTextEncoding; return getDefaultTextEncodingLocked();
} }
} }
...@@ -1326,7 +1326,7 @@ public class AwSettings { ...@@ -1326,7 +1326,7 @@ public class AwSettings {
*/ */
public boolean getMediaPlaybackRequiresUserGesture() { public boolean getMediaPlaybackRequiresUserGesture() {
synchronized (mAwSettingsLock) { synchronized (mAwSettingsLock) {
return mMediaPlaybackRequiresUserGesture; return getMediaPlaybackRequiresUserGestureLocked();
} }
} }
...@@ -1354,7 +1354,7 @@ public class AwSettings { ...@@ -1354,7 +1354,7 @@ public class AwSettings {
*/ */
public String getDefaultVideoPosterURL() { public String getDefaultVideoPosterURL() {
synchronized (mAwSettingsLock) { synchronized (mAwSettingsLock) {
return mDefaultVideoPosterURL; return getDefaultVideoPosterURLLocked();
} }
} }
...@@ -1494,7 +1494,7 @@ public class AwSettings { ...@@ -1494,7 +1494,7 @@ public class AwSettings {
*/ */
public boolean getVideoOverlayForEmbeddedVideoEnabled() { public boolean getVideoOverlayForEmbeddedVideoEnabled() {
synchronized (mAwSettingsLock) { synchronized (mAwSettingsLock) {
return mVideoOverlayForEmbeddedVideoEnabled; return getVideoOverlayForEmbeddedVideoEnabledLocked();
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment