Do not adjust oom_score when renderer is discarded

If pid is zero, renderer process is not existed.
It is discarded. So, we don't need to adjust oom_score

BUG=151442
TEST=Compile


Review URL: https://chromiumcodereview.appspot.com/10961018

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@157912 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 157910
SVN changes up to revision 157912
Fix saved screenshots for feedback.
Currently the way the saved screenshots are cached is broken, causing saved screenshots to not get sent to the feedback server. This CL fixes that issue.
Additionally, the default saved screenshot selection is also broken, which is also fixed.

R=csilv@chromium.org
BUG=148457
TEST=Send a saved screenshot from ChromeOS and verify it shows up on the feedback server.


Review URL: https://chromiumcodereview.appspot.com/10964026

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@157913 0039d316-1c4b-4281-b951-d872f2087c98
Fix toolbar keyboard accessibility on Views (alternative impl).

This broke when the location bar got moved out of the toolbar's view 
hierarchy, it no longer became possible to tab through all of the 
controls in the toolbar including the location bar. 

To fix this, I have AccessiblePaneView provide its own subclass of
FocusSearch, overriding GetParent and Contains so that the
location bar is considered to be part of the toolbar for focus
searching.

Adds a new test that should catch this type of regression in the future, 
while hopefully not being too brittle so it will still succeed as 
the toolbar changes over time. 

BUG=145835
TEST=Press F6 or Alt+Shift+T to focus the toolbar, then Tab to all of the focusable controls, make sure the location bar is included.


Review URL: https://chromiumcodereview.appspot.com/10949005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@157914 0039d316-1c4b-4281-b951-d872f2087c98
Avoid calling RWHVWin::GetBackingStore when accelerated compositing is enabled.

It's milliseconds expensive and it's not needed in this case.

Review URL: https://chromiumcodereview.appspot.com/10967027

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@157915 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 157915
[net] Connect DNS signals to re-fetching PAC script.

BUG=128620


Review URL: https://chromiumcodereview.appspot.com/10534102

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@157916 0039d316-1c4b-4281-b951-d872f2087c98
Avoid a crash if LocationBarView::GetTabContents() returns NULL during a paint.

Other platforms use different methods to get a tab ID which don't crash when
there's no TabContents.

BUG=151014


Review URL: https://chromiumcodereview.appspot.com/10961023

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@157917 0039d316-1c4b-4281-b951-d872f2087c98
cros: Fix crash in AppNonClientFrameViewAura::ControlView::ButtonPressed

Restoring the window via a keyboard shortcut will result in the
AppNonClientFrameViewAura being deleted but the widget with the
restore/close buttons still visible. The widget's view will have
an owner_ pointer to deleted memory, then dereference it if the
buttons are clicked.

Crash was introduced by the fix to crbug.com/147635 at crrev.com/156152

BUG=149938
TEST=added AppNonClientFrameViewAuraTest.SnapLeftClosesControls

Review URL: https://chromiumcodereview.appspot.com/10961027

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@157918 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 157918
Open the keyboard help overlay on F14.

BUG=chrome-os-partner:14339
TEST=Change all "F4" in /usr/share/X11/xkb/symbols/srvr_ctrl to "F14", remove all *.xkm cache files in /var/lib/xkb/, restart X by sign out/in, then press F4. Confirm that the overlay help appears. Do the same when a windowed app has keyboard focus. Confirm that the help appears (since F14 is a reserved Ash accelerator).


Review URL: https://chromiumcodereview.appspot.com/10965005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@157919 0039d316-1c4b-4281-b951-d872f2087c98
Windows: AcceleratedSurface present thread periodically polls raster status.

This is to give the threaded compositor a recent time base to work with.

Also use acknowledge with the surrent refresh period for the swap chain.

Moved call to Present to before the spin on the Query since that is unnecessary and allows earlier acknowledgement.

BUG=143854

Review URL: https://chromiumcodereview.appspot.com/10892018

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@157920 0039d316-1c4b-4281-b951-d872f2087c98
[filemanager] Show "view" action for PDF before the PDF plugin is loaded.

GetPluginInfoByPath works only for already loaded plugins. This patch changes
to use GetRegisteredPpapiPluginInfo, to that category the built-in PDF plugin
belongs, and is available before plugin loading.

BUG=147530
TEST=Login to ChromeOS, Ctrl-M, and check the context menu of PDF has "view".

Review URL: https://chromiumcodereview.appspot.com/10956007

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@157921 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 157920
SVN changes up to revision 157921
Setup network JNI for webkit_unit_tests.

JNI was intentionally not setup for webkit_unit_tests since we were not building an
APK for testing not so long ago. We can now setup JNI.

This will fix tests like AssociatedURLLoaderTest.SameOriginSuccess that were
failing internally after I tried to eliminate some unnecessary diffs we have in
net/ (e.g.: see 0f9f6577da12fa112442a4f5aff17e171db5e96f internally).

TEST=webkit_unit_tests


Review URL: https://chromiumcodereview.appspot.com/10916056

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@157922 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 157922
Make apk targets remove .class files before compile

Apk targets will package all .class files in the output directory into
the apk. If a .java file is moved, the corresponding .class files might
still exist in the output directory, leading to incorrect or failed
builds.

This forces all .java files for a target to be rebuilt when that target
is rebuilt, but this is very fast.

See http://crrev.com/10914080 for the same change to jar targets.

BUG=


Review URL: https://chromiumcodereview.appspot.com/10959027

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@157923 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 157923