Fix invalid file permissions on desktop_screen_position_client_unittest.cc

TBR=sky@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@214126 0039d316-1c4b-4281-b951-d872f2087c98
Fix bug in ReliableQuicStream::OnDecompressorAvailable
which could cause streams to be closed on decompression errors when
in fact only partial headers had been received for that stream.

Merge internal change: 49941044

R=rtenneti@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@214127 0039d316-1c4b-4281-b951-d872f2087c98
content: Remove "WebKit-only" branch from GetWebKitRootDirFilePath().

As a consequency of simplifying GetWebKitRootDirFilePath(), GetChromiumRootDirFilePath() can be removed.

All paths that correspond to "WebKit-only" checkouts aren't valid anymore since
the Blink's fork and can be removed now.

BUG=None
R=jochen@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@214128 0039d316-1c4b-4281-b951-d872f2087c98
Fix typo in #include in gtk2_util.cc: ".cc" -> ".h"

BUG=258651
TEST=none
TBR=erg@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@214129 0039d316-1c4b-4281-b951-d872f2087c98
Update stream textures during Draw instead of Bind

BUG=260189
NOTRY=True

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@214130 0039d316-1c4b-4281-b951-d872f2087c98
Newly re-enable test fails consistently on the Win 7 bots
http://build.chromium.org/p/chromium.win/waterfall?builder=Win%207%20Tests%20x64%20(1)

LayerTreeHostFiltersPixelTest.BackgroundFilterBlurOutsets: 
[2996:3920:0728/095913:3045950:ERROR:pixel_comparator.cc(180)] Percentage of pixels with an error: 6.49
[2996:3920:0728/095913:3045950:ERROR:pixel_comparator.cc(182)] Percentage of pixels with errors not greater than 0: 0
[2996:3920:0728/095913:3045950:ERROR:pixel_comparator.cc(185)] Average absolute error (excluding identical pixels): R=0.990755 G=0.503852 B=0.990755 A=0
[2996:3920:0728/095913:3045950:ERROR:pixel_comparator.cc(190)] Largest absolute error: R=2 G=2 B=2 A=0
[2996:3920:0728/095913:3045950:ERROR:pixel_comparator.cc(205)] Pixel error at x=12 y=184; actual RGBA=(130,192,130,0); expected RGBA=(129,192,129,0)
[2996:3920:0728/095913:3045950:ERROR:pixel_comparator.cc(205)] Pixel error at x=13 y=15; actual RGBA=(144,200,144,0); expected RGBA=(143,199,143,0)
[2996:3920:0728/095913:3045950:ERROR:pixel_comparator.cc(205)] Pixel error at x=13 y=16; actual RGBA=(152,204,152,0); expected RGBA=(151,203,151,0)
[2996:3920:0728/095913:3045950:ERROR:pixel_comparator.cc(205)] Pixel error at x=13 y=17; actual RGBA=(159,207,159,0); expected RGBA=(158,206,158,0)
[2996:3920:0728/095913:3045950:ERROR:pixel_comparator.cc(205)] Pixel error at x=13 y=18; actual RGBA=(165,210,165,0); expected RGBA=(164,209,164,0)
[2996:3920:0728/095913:3045950:ERROR:pixel_comparator.cc(205)] Pixel error at x=13 y=19; actual RGBA=(169,212,169,0); expected RGBA=(168,211,168,0)
[2996:3920:0728/095913:3045950:ERROR:pixel_comparator.cc(205)] Pixel error at x=13 y=20; actual RGBA=(172,213,172,0); expected RGBA=(171,212,171,0)
[2996:3920:0728/095913:3045950:ERROR:pixel_comparator.cc(205)] Pixel error at x=13 y=21; actual RGBA=(174,215,174,0); expected RGBA=(173,214,173,0)
[2996:3920:0728/095913:3045950:ERROR:pixel_comparator.cc(205)] Pixel error at x=13 y=22; actual RGBA=(175,215,175,0); expected RGBA=(174,214,174,0)
[2996:3920:0728/095913:3045950:ERROR:pixel_comparator.cc(205)] Pixel error at x=13 y=23; actual RGBA=(176,216,176,0); expected RGBA=(175,214,175,0)
[2996:3920:0728/095913:3045950:ERROR:pixel_comparator.cc(205)] Pixel error at x=13 y=24; actual RGBA=(177,216,177,0); expected RGBA=(176,215,176,0)
[2996:3920:0728/095913:3045950:ERROR:pixel_comparator.cc(205)] Pixel error at x=13 y=25; actual RGBA=(177,216,177,0); expected RGBA=(176,215,176,0)
[2996:3920:0728/095913:3045950:ERROR:pixel_comparator.cc(205)] Pixel error at x=13 y=26; actual RGBA=(177,216,177,0); expected RGBA=(176,215,176,0)
[2996:3920:0728/095913:3045950:ERROR:pixel_comparator.cc(205)] Pixel error at x=13 y=27; actual RGBA=(177,216,177,0); expected RGBA=(176,215,176,0)
[2996:3920:0728/095913:3045950:ERROR:pixel_comparator.cc(205)] Pixel error at x=13 y=28; actual RGBA=(177,216,177,0); expected RGBA=(176,215,176,0)
[2996:3920:0728/095913:3045950:ERROR:pixel_comparator.cc(205)] Pixel error at x=13 y=29; actual RGBA=(177,216,177,0); expected RGBA=(176,215,176,0)
[2996:3920:0728/095913:3045950:ERROR:pixel_comparator.cc(205)] Pixel error at x=13 y=30; actual RGBA=(177,216,177,0); expected RGBA=(176,215,176,0)
[2996:3920:0728/095913:3045950:ERROR:pixel_comparator.cc(205)] Pixel error at x=13 y=31; actual RGBA=(177,216,177,0); expected RGBA=(176,215,176,0)
[2996:3920:0728/095913:3045950:ERROR:pixel_comparator.cc(205)] Pixel error at x=13 y=32; actual RGBA=(177,216,177,0); expected RGBA=(176,215,176,0)
[2996:3920:0728/095913:3045950:ERROR:pixel_comparator.cc(205)] Pixel error at x=13 y=33; actual RGBA=(177,216,177,0); expected RGBA=(176,215,176,0)
...


Revert 214098 "Re-enable cc_unittest LayerTreeHostFiltersPixelTe..."

> Re-enable cc_unittest LayerTreeHostFiltersPixelTest.BackgroundFilterBlurOutsets, and adjust the fuzzy match threshold on Windows.
> 
> R=danakj
> BUG=
> 
> Review URL: https://chromiumcodereview.appspot.com/20542002

TBR=senorblanco@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@214131 0039d316-1c4b-4281-b951-d872f2087c98
Make a copy of PageClassification enum outside the metrics code

This will reduce in the future the number of metrics protocol buffers 
that we need to #include in various omnibox code files.  It also 
introduces better boundaries between disparate sections of the codebase.

NOTRY=true
BUG=

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@214132 0039d316-1c4b-4281-b951-d872f2087c98
A few minor changes to the chrome.downloads extension API

Reviewers:
jhawkins: webui
Done:
asanka: */download/*
jam: content/public/*
asargent: */extensions/*

Replaced the "Invalid operation" error message with more specific and helpful messages

Add DownloadItem.referrer

Add DownloadItem.estimatedEndTime

Add DownloadItem.canResume

Change DownloadQuery.limit to default to 1000

Change 'conflict_action' to 'conflictAction'.

Change DownloadQuery.orderBy and DownloadQuery.query to arrays of strings

Remove DownloadItem.dangerAccepted in favor of DownloadItem.danger == 'accepted'

Add showDefaultFolder().

Disallow access to packaged_apps.

download() now updates the Download.Sources histogram. http://crbug.com/240322

Document using startedAfter and limit to page through search() results.

DownloadItem.error is now a string enum instead of mysterious numbers.

Add downloads.removeFile(id) and DownloadItem::DeleteFile() so that the file may be deleted separately from the history entry.

Calling open() for dangerous downloads has always been guaranteed to return kInvalidOperation because unaccepted dangerous downloads cannot transition to state='complete', and open() returns kInvalidOperation for incomplete items.

We can wait until after launch to figure out whether there needs to be some mechanism to allow extensions to override the request header blacklist. This seems like an edge case for which we may never receive feature requests.

Staged docs preview: http://basho.cam.corp.google.com:8000/extensions/downloads.html#type-DownloadItem

BUG=240322
R=asanka@chromium.org, asargent@chromium.org, jam@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@214133 0039d316-1c4b-4281-b951-d872f2087c98
A major revision of the Chrome probe test client.

In this revision, a client will first request a token from the server
and then will make several tests including a start-packet test,
a pacing-or-non-pacing test, a NAT binding test, and a NAT binding
reference test. Finally it will send the collected stats via UMA report.
The message protocol is changed to protocol buffer.

Jim Roskind added the notry option, as I don't believe the Aura (try) failure relates to this CL.

BUG=250676
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@214135 0039d316-1c4b-4281-b951-d872f2087c98
gpu: Add GpuMemoryBufferFactory interface.

Used for in-process GpuMemoryBuffer creation.

TEST=gpu_unittests --gtest_filter=MockGpuMemoryBufferTest.Lifecycle
BUG=261649
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@214136 0039d316-1c4b-4281-b951-d872f2087c98
Disable DownloadExtensionTest_Download_Subdirectory on windows.

TBR=asanka

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@214137 0039d316-1c4b-4281-b951-d872f2087c98
Get rid of PluginDelegate::PlatformGraphics3D abstraction now that pepper plugin code is in content.

BUG=263054
R=scottmg@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@214138 0039d316-1c4b-4281-b951-d872f2087c98
Get rid of PluginDelegate::PlatformAudioOutputClient and PluginDelegate::PlatformAudioOutput abstractions now that pepper plugin code is in content.

BUG=263054
R=scottmg@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@214139 0039d316-1c4b-4281-b951-d872f2087c98
Get rid of PluginDelegate::PlatformVideoDecoder abstraction now that pepper plugin code is in content.

BUG=263054
R=scottmg@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@214141 0039d316-1c4b-4281-b951-d872f2087c98
[Android] Fail fast when trying to parse a non-existant CommandLine file.

If the file passed to CommandLine.initFromFile doesn't exist or has
a 0 length, fail fast rather than waiting for FileNotFoundException
to be thrown.

BUG=b/9996857
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@214143 0039d316-1c4b-4281-b951-d872f2087c98
Add PRESUBMIT check to cc to ensure that C++ std::abs is used

Before this patch, it is possible to use abs() without the std::
namespace qualifier, which may link to the C standard library
implementation of abs(). Thus, someone using abs(float) may get
wrong results because C standard version will convert the float
to an int. This patch updates the occurrences of of abs() and
fabs() in cc/ (though technically none were incorrect, thankfully)
and adds a PRESUBMIT to enforce that all uses of abs from now on
have an explicit std:: to resolve them correctly.

BUG=261900
R=enne@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@214144 0039d316-1c4b-4281-b951-d872f2087c98
NaCl: Include times in list of allowed syscalls.

The recently-added seccomp-filter-sandbox caused the syscall
__NR_TIMES to be trapped rather than allowed. Applications that
use the Pepper GPU interfaces typically need this via
CommandBufferHelper::FlushSync, which calls clock.

This CL merely adds __NR_times to the list of syscall IDs allowed.

BUG=264856
TEST=Run Tumbler NaCl example on Linux
R=jln@chromium.org, mseaborn@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@214146 0039d316-1c4b-4281-b951-d872f2087c98