[UMA] Rip out more of the deprecated XML logging code.

BUG=109818
TEST=none
R=jar@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211508 0039d316-1c4b-4281-b951-d872f2087c98
media_galleries: Make use of MediaFileSystemMountPointProvider::MediaTaskRunner().

This change MTPDeviceDelegateImplWin to reuse MediaTaskRunner() function from
MediaFileSystemMountPointProvider to avoid code duplication, since
both functions are doing the same thing.

BUG=None
R=vandebo@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211509 0039d316-1c4b-4281-b951-d872f2087c98
Restructure chromoting_jni_instance handling of Java strings

This also adds some comments to explain how/why things are being done the way they are.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211510 0039d316-1c4b-4281-b951-d872f2087c98
Remove overlapping memcpy in gpu unittests

BUG=173356

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211511 0039d316-1c4b-4281-b951-d872f2087c98
Rename media player managers.

MediaPlayerManagerImpl -> BrowserMediaPlayerManager
WebMediaPlayerManagerAndroid -> RendererMediaPlayerManager

TBR=jochen@chromium.org
BUG=none

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211512 0039d316-1c4b-4281-b951-d872f2087c98
sync: Run-length compression for UniquePositions

Introduces and makes use of a new compression scheme designed
specifically for the UniquePositions use case.

The compression scheme assumes that the abnormally long positions will
contain long strings of 0xFF or 0x00 digits, so run-length encoding
should be sufficient compression for our needs.  There's no need to
resort to anything more complicated like Huffman or Lempel-Ziv.

This new compression scheme is intended to improve some of the areas
where gzip compression was weakest.  These include serialization and
deserialization time (which may have an impact on startup time), and the
costs of storing these positions in memory (which gzip did nothing to
mitigate).  The new compression scheme should also result in a
significant improvement in the time taken to compare long position
strings.

Unfortunately, this new compression scheme increases the cost of
creating new positions.  While comparison of compressed positions is
supported, the insertion of items before, after, or between a compressed
item requires that the relevant positions be temporarily uncompressed.

BUG=145412

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211513 0039d316-1c4b-4281-b951-d872f2087c98
Adding first unit tests to Google Now extension with mocks for global functions, chrome APIs and local callbacks.

test_api.js framework was extended to support mocking non-global functions and APIs with dot-separated names.


BUG=164227
TEST=No

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211514 0039d316-1c4b-4281-b951-d872f2087c98
Allow fullscreen for Mac app windows even when resizable is set false.


BUG=259506
TEST=Manual test via bug instructions.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211515 0039d316-1c4b-4281-b951-d872f2087c98
Add device motion enable switch to about:flags in Chrome for Android.

BUG=135804

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211516 0039d316-1c4b-4281-b951-d872f2087c98
media_galleries: Fix for r211509.

MediaFileSystemMountPointProvider got renamed to MediaFileSystemBackend.

BUG=None
TBR=vandebo@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211517 0039d316-1c4b-4281-b951-d872f2087c98
Better size formatting for indexeddb-internals

I just discovered FormatBytesUnlocalized - as this is for an internal tool, I believe
this use is ok. This is just something that's bugged me about chrome://indexeddb-internals

BUG=

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211518 0039d316-1c4b-4281-b951-d872f2087c98
Partial Revert "Force zoom bubble for TemporaryZoom event" r201382

PDF does not need zoom bubble. This part of bug report attached to the change was incorrect.
Still keep calling UpdateState() unconditionally to keep fix of regression with zoom icon in address bar.

BUG=254865,240382

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211519 0039d316-1c4b-4281-b951-d872f2087c98
Fix the narrowing down GCC compile error

GCC complaint about narrowing conversion from 'int' to 'const char' inside { } is ill-formed in C++11 [-Werror=narrowing]

BUG=
TEST=

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211520 0039d316-1c4b-4281-b951-d872f2087c98
[Sync] Fix favicon handling of null visit time

We now properly don't sync back favicons with no visit time. Additionally,
we handle those favicons that did manage to sync through with a null visit
time by artificually setting the visit time to 1ms.

BUG=258196

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211521 0039d316-1c4b-4281-b951-d872f2087c98
Implementation of Privet HTTP protocol

This CL implements a client for the /info and /register endpoints for the Privet
HTTP protocol.

BUG=

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

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

For Android WebView, when the webview is detached from the view tree, it
is the last chance we have of releasing all GL resources. This is
essentially the reverse of DeferredInitialize, synchronously releasing
GL resources and reverting back to software mode and zero-budget.

BUG=256276

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211523 0039d316-1c4b-4281-b951-d872f2087c98
RenderWidgetHostImpl's resize_ack_pending_ should set to true only when
RenderWidget::Resize(...) is expected to send ack. But resize_ack_pending_
could be false positive or false negative. It caused crbug.com/246154 and
this CL fixes the both false cases by setting resize_ack_pending_ correctly.


Example false positive:
Let's say RenderWidget::Resize(...) is called twice by
RenderWidgetHostImpl::WasResized(), with the following arguments.

#1 new_size : 100x100     physical_backing_size :      0x0
#2 new_size : 100x100     physical_backing_size :  200x200

Then it doesn't send ack for the both cases because #1 has an empty
physical_backing_size and #2 doesn't change new_size from the previous call.
However, RenderWidgetHostImpl::WasResized() sets resize_ack_pending_ true #2,
because current_size_ is updated only when we have ack back, so current_size_
wasn't updated for #1 and RenderWidget can think the current_size_ is about to
change to 100x100 at #2.


Example false negative:
Again, consider this sequence of arguments:

#1 new_size : 100x100
#2 new_size :     0x0
#3 new_size : 100x100

RenderWidget sends acks at #1 and #3. Then RenderWidget's current_size_ is
not updated at #2 so RenderWidget thinks current_size_ is not changed for
#3, thus does not expect ack.

BUG=246154

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211524 0039d316-1c4b-4281-b951-d872f2087c98
[Sync] Don't crash if the SessionModelAssociator doesn't exist at startup time

It's possible for the SessionModelAssociator to be destroyed or never created if an
error occurs at startup. In that case we shouldn't crash.

BUG=248717

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211525 0039d316-1c4b-4281-b951-d872f2087c98
content: Multiply tile size by 2 when MapImage API is being used to reduce the number of zero-copy buffers being allocated.

BUG=b/9760370

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211526 0039d316-1c4b-4281-b951-d872f2087c98
Remove WebGraphicsContext::readBackFramebuffer implementation.

This isn't used anymore.

BUG=

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

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