Add checking for license formats to third_party/PRESUBMIT

Since we expect a certain format for the "License:" field, it's better to
check it earlier -- during the presubmit stage, so people won't get
surprises later.

Also, updated the license checking code to accept multiple licenses if
one of them is compatible with Android.

BUG=168324
R=dannyb@google.com, mkosiba@chromium.org
TBR=darin@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250068 0039d316-1c4b-4281-b951-d872f2087c98
Add transfer size paramater to didFinishLoading [2/3]

Mini DD:
https://docs.google.com/a/chromium.org/document/d/1kAKnBKofLc3Tex_JPveubwJcQLT3BhIL3xNQyjvRIps/edit?usp=sharing

Most of files contain only signature changes.

There are 3 non-trivial changes:
1) ResourceMsg_RequestComplete IPC message receives struct instead of distinct parameters.
2) Use URLRequest::GetTotalReceivedBytes instead of  DevToolsNetLogObserver::GetAndResetEncodedDataLength
3) Remove unused code in DevToolsNetLogObserver.


BUG=111052

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250069 0039d316-1c4b-4281-b951-d872f2087c98
[SyncFS] Preparation for conflict tests on DriveBackendSyncTest.

 * Add FakeDriveServiceHelper::UpdateModificationTime
 * Replace a FilePath argument to FilePath::String for readable code

BUG=331988

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250070 0039d316-1c4b-4281-b951-d872f2087c98
[Android] Fix ps_ext tool uptime reporting and output format.

Use /proc/uptime rather than clock_gettime plus other small fixes:
 - Use /proc/uptime rather than clock_gettime.
 - PAGE_SHIFT is not always available in userspace. Use sysconf.
 - Output processes as dictionary instead of a list.
 - Don't use length modifier in unused fscanf arguments.

BUG=340294
NOTRY=true
R=pliard@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250071 0039d316-1c4b-4281-b951-d872f2087c98
Land Recent QUIC Changes.

Fix a bug where acks were not being bundled with data, and data was not
being bundled with data in QUIC.

Add a test to ensure an incoming ack to the server caused an ack packet
and a data packet to be sent bundled, not separately.

Merge internal change: 61238548
https://codereview.chromium.org/153593003/


Send a QUIC RST on stream termination if neither a RST nor a FIN have
yet been sent. This is to allow accurate flow control accounting which
requires a RST or FIN must be sent in response to a RST.

Merge internal change: 61236803
https://codereview.chromium.org/137493009/

R=rch@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250072 0039d316-1c4b-4281-b951-d872f2087c98
Roll grit from r148 to r150.

Changes:
 - r149 Add back 'android' and 'ios' for is_posix, and fix check for bsd.
 - r150 Provide defines as local variables in if-expressions.

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

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250074 0039d316-1c4b-4281-b951-d872f2087c98
Cleanup: make EmbeddedWorkerTestHelper take an initial renderer process ID

For some unittests that run full worker registration process
(e.g. ServiceWorkerContextTest, ServiceWorkerDispatcherHostTest
and ServiceWorkerJobTest) it doesn't make sense to call
SimulateAddProcess() or SimulateCreateWorker() just to
ensure the TestHelper is enabled as an IPC sender for the process.
(Because they internally add processes to a newly created worker
in the registration)

This CL:
- Changes EmbeddedWorkerTestHelper to take an initial renderer process ID as its ctor parameter so that the helper can be used as an IPC sender for the process from the beginning
- Renames SimulateAddProcess() to SimulateAddProcessToWorker() for better clarity
- Removes SimulateCreateWorker() as it's not really necessary
- Removes SimulateRemoveProcess() as no one's calling it for now (YAGNI)

BUG=313530
TEST=content_unittests:ServiceWorker*

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250075 0039d316-1c4b-4281-b951-d872f2087c98
QUIC - Minor cleanup changes, found while merging with internal code.

R=rch@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250076 0039d316-1c4b-4281-b951-d872f2087c98
Add helpers for CGL types.

Add base::ScopedTypeRef, which is similar to ScopedCFTypeRef,
but allows for parameterized retain and release functions. This is
necessary for types such as CGLContextObj, which have their own
retain and release methods (and for which calling CFRelease will
result in crashes).

Add some common typedefs of ScopedTypeRef to cgl_util in ui,
along with a scoped CGLContextObj make-current class.

BUG=245900
R=thakis@chromium.org,mark@chromium.org
TBR=garykac@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250077 0039d316-1c4b-4281-b951-d872f2087c98
Files.app: Show dialog when the file is opened in another desktop.

This CL changed the result type of fileBrowserPrivate.taskExecute so that the
result shows how the file is opened.  The result value 'message_sent' means that
the execution message is sent to a proper extension and the extension opens a
file, where we cannot open the new window in the current desktop.  The FileTasks
class in JS refers the result value and opens an alert dialog for the
'message_sent' result.

BUG=336093
TEST=manually

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250078 0039d316-1c4b-4281-b951-d872f2087c98
Blink roll 166792:166802

http://build.chromium.org/f/chromium/perf/dashboard/ui/changelog_blink.html?url=/trunk&range=166793:166802&mode=html
TBR=
BUG=

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

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250080 0039d316-1c4b-4281-b951-d872f2087c98
If an app lies about its icon size, always resize - not just when it's too modest.

Apps can lie about icon sizes in their manifest. Currently, if they say
an icon is smaller than it actually is, it will get resized
automatically. However, if the app claims an icon is bigger than it
actually is, no resizing occurs. This means that when a shortcut icon is
created, no resizing will occur and that icon entry will simply get an
empty/missing asset.

This CL changes UpdateShortcutInfoAndIconForApp to use ALWAYS_RESIZE
rather than RESIZE_WHEN_LARGER.

BUG=341512

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250081 0039d316-1c4b-4281-b951-d872f2087c98
Pass was_clean from WebSocketChannel to renderer

Previously, the browser always set |was_clean| to true when it sent an
OnDropChannel message to the renderer. Set the value correctly in
WebSocketChannel and pass it through to WebSocketDispatcherHost.

BUG=341343

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250082 0039d316-1c4b-4281-b951-d872f2087c98
Custom Downloads path for testing code must be injected via VolumeManager.

This is for bug 336124, where VolumeManager wants to manage all the mounted
path to keep track of the whole list of own profile's directories.
In addition, by this change we can add ForTesting() suffix for the method
that clearly prohibits other types of uses.

BUG=336124
TBR=sky

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250083 0039d316-1c4b-4281-b951-d872f2087c98
Don't update the local source constraints on WebAudio creation. 

WebAudio should not be able to specify media constraints; this removes 
that possibility, instead passing NULL when creating the local audio 
source. 

Also:
- Apply the default and platform effects constraint changes to the
optional rather than mandatory group.
- Abstract the harmonization of constraints and platform effects 
to a function. This will ease future refactoring. 

TESTED=apprtc behaves as before wrt constraints and effects.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250084 0039d316-1c4b-4281-b951-d872f2087c98
drive: Cancel fetch sync task when unpinning a file

BUG=248856
TEST=Open Google Drive directory in Files.app, right click a file and check "Available offline", wait until the sync icon appears on the system tray, uncheck "Available offline", ensure that the sync task is canceled and the sync icon disappears.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250085 0039d316-1c4b-4281-b951-d872f2087c98
Add ability for running packaged app to badge their taskbar icon.

This is only implemented on Windows with this patch.

BUG=311878

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250086 0039d316-1c4b-4281-b951-d872f2087c98
Hide the shortcut overlay in the app launcher for windowed streamlined hosted apps.

This CL makes hosted apps that run as windows get their shortcut overlay
hidden.  In order for the app list to get updated on pref change, the
ExtensionAppModelBuilder now listens to ExtensionPrefs changes and
updates the ExtensionAppItem icons if necessary.

This CL also re-enables the drop shadow on hosted apps in the app launcher.
This was necessary because switching an app from windowed to tabbed would cause
the icon the jump around as the shadow was added and removed.

BUG=318607

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

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