diff options
author | boliu@chromium.org <boliu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-30 00:47:59 +0000 |
---|---|---|
committer | boliu@chromium.org <boliu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-30 00:47:59 +0000 |
commit | e1632c97a8e992893723ae352fb49e954bca7abd (patch) | |
tree | 35dd7ab47866b136e4175cbc6dbc7063a03e8e39 /android_webview/browser/aw_browser_main_parts.cc | |
parent | 34fccb876ba5248752cd0c02f5969effbc817578 (diff) | |
download | chromium_src-e1632c97a8e992893723ae352fb49e954bca7abd.zip chromium_src-e1632c97a8e992893723ae352fb49e954bca7abd.tar.gz chromium_src-e1632c97a8e992893723ae352fb49e954bca7abd.tar.bz2 |
[Android WebView] Hook up MemoryPressureListener
BUG=
NOTRY=true
Review URL: https://codereview.chromium.org/25186002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@225905 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'android_webview/browser/aw_browser_main_parts.cc')
-rw-r--r-- | android_webview/browser/aw_browser_main_parts.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/android_webview/browser/aw_browser_main_parts.cc b/android_webview/browser/aw_browser_main_parts.cc index da44066..18ea5f5 100644 --- a/android_webview/browser/aw_browser_main_parts.cc +++ b/android_webview/browser/aw_browser_main_parts.cc @@ -7,6 +7,7 @@ #include "android_webview/browser/aw_browser_context.h" #include "android_webview/browser/aw_result_codes.h" #include "base/android/build_info.h" +#include "base/android/memory_pressure_listener_android.h" #include "base/files/file_path.h" #include "base/path_service.h" #include "content/public/browser/android/compositor.h" @@ -53,6 +54,9 @@ int AwBrowserMainParts::PreCreateThreads() { pak_path.AppendASCII("webviewchromium.pak"), ui::SCALE_FACTOR_NONE); + base::android::MemoryPressureListenerAndroid::RegisterSystemCallback( + base::android::AttachCurrentThread()); + return content::RESULT_CODE_NORMAL_EXIT; } |