cc: Add GL debug markers for gpu rasterization.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@249320 0039d316-1c4b-4281-b951-d872f2087c98
Sort the host list.

BUG=270424

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@249321 0039d316-1c4b-4281-b951-d872f2087c98
Extensions: Send the tab id to platform apps.

This lets mediaGalleries.addUserSelectedFolder() figure out the tab
that triggered the API, so it can display the select dialog in the tab
when the platform app has no open windows.

BUG=333899

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@249322 0039d316-1c4b-4281-b951-d872f2087c98
[FileAPI] Don't fail on ReserveQuota() even on insufficient space

Return maximum available quota when there isn't sufficient available space
 to satisfy the requested amount of quota reservation.

BUG=340703

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@249323 0039d316-1c4b-4281-b951-d872f2087c98
Add ApiActivityMonitor to decouple ActivityLog from low-level extensions code

* Introduce ApiActivityMonitor interface and make ActivityLog implement it
* Use it to replace EventRouter's one-off EventDispatchObserver, which was
  kind of ugly.
* Use it for function call notifications from ExtensionFunctionDispatcher

This allows app_shell to use ExtensionFunctionDispatcher without an
ActivityLog and gets us another step closer to moving EFD into src/extensions.

BUG=332986,339595
TEST=browser_tests Extension*

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@249324 0039d316-1c4b-4281-b951-d872f2087c98
Move Password(Generation)Manager IPC reception to ContentPasswordDriver

This CL exposes the methods that PasswordManager and PasswordGenerationManager
use in response to IPC as public APIs on those classes, and moves the IPC
handling into ContentPasswordDriver.

BUG=340669, 340690
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@249325 0039d316-1c4b-4281-b951-d872f2087c98
Quota: Cap size of requested quota

This change caps size of requested quota as follows:
- Temporary quota is capped at the maximum value of int64
(This is an implementation limitation)
- Persistent quota is capped at 10GB per host


BUG=256288
TEST=content_unittests
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@249326 0039d316-1c4b-4281-b951-d872f2087c98
Add PowerSaveBlocker in ContentVideoView

This patch add additonal PowerSaveBlocker in ContentVideoView, and will block
screen sleep when ContentView's container isn't visiable.

BUG=338873

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@249327 0039d316-1c4b-4281-b951-d872f2087c98
Loads the logo image to the speech UI in app-list.

BUG=313904
R=xiyuan@chromium.org, oshima@chromium.org
TEST=manually

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@249328 0039d316-1c4b-4281-b951-d872f2087c98
Tab close buttons can only be targeted with touch if the whole button is visible

As a result of r246686 landing, tabs can be too easy to close with
touch in stacked tab mode when rect-based targeting is enabled.
This patch changes the behaviour so that:

(1) Hit tests in response to a mouse event will always consider the
    region of the tab close button that is visible.
(2) Hit tests in response to a gesture will only consider the tab
    close button to be a valid target if the entire button is
    visible to the user.

Note that if there is any vertical clipping of the tab
close button, we do not consider the clipped
region to be a part of the button's bounds.

BUG=338516,332334
TEST=TabStripTest.ClippedTabCloseButton, also manually tested on Windows when tab close buttons are vertically clipped

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@249331 0039d316-1c4b-4281-b951-d872f2087c98
generated_resources.grd: Mark strings for chrome://nfc-debug not translateable.

chrome://nfc-debug is meant for debugging and demo purposes only and does not
need to be translated. This CL marks the related string resources with
'translateable="false"'.

BUG=none

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@249332 0039d316-1c4b-4281-b951-d872f2087c98
device/bluetooth: Introduce class bluetooth_utils::UUID.

Added an opaque container for Bluetooth universally unique identifiers, which
are internally represented as a string. The class abstracts away conversion from
16 and 32-bit UUIDs to the 128-bit format using the existing
bluetooth_utils::CanonicalUuid function. This provides a more simple object
oriented interface for passing around UUIDs.

BUG=340524
TEST=device_unittests

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@249333 0039d316-1c4b-4281-b951-d872f2087c98
Make NSSCertDatabase::ListCerts async and use the worker pool for actual certificate listing.

BUG=340460

TBR=sky@chromium.org (for rename in chrome/browser/certificate_manager_model.cc)

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@249334 0039d316-1c4b-4281-b951-d872f2087c98
Use "second" instead of "sec" in TimeRemainingLong()

This makes more sense, also it is consistent with
TimeDurationLong().

At that occasion, fix bad grammar in ui_strings.grd.

Unit testing is provisional and will be adjusted once
https://codereview.chromium.org/139413005/ has landed.

BUG=340113
TEST=full unit test coverage

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@249335 0039d316-1c4b-4281-b951-d872f2087c98
[Android WebView] Stabilize AwZoomTest.testMagnification...

The page that is used for testing is updated to have wide content, so
Blink actually sets up the page scale to the specified 'initial-scale'.

After loading the page, the test now waits until the page scale becomes
equal to the one specified in 'initial-scale' / 'minimum-scale', which ensures
that the viewport meta tag has been fully processed. This should prevent
the situation when the test discovers that the page can still be zoomed out.

I have encountered an issue with DCHECKs in
InProcessViewRenderer::SetTotalRootLayerScrollOffset, and had to disable
them.

BUG=340327,340648
R=mkosiba@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@249336 0039d316-1c4b-4281-b951-d872f2087c98
Enable per-monitor DPI Awareness for Me2Me and It2me native messaging.

The "true/pm" value is processed correctly on Win8.1 (per-monitor aware), and on previous versions (system dpi aware).
See http://msdn.microsoft.com/en-us/library/windows/desktop/dn469266(v=vs.85).aspx#supporting_dynamic_dpi_changes for details.

BUG=329343

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@249337 0039d316-1c4b-4281-b951-d872f2087c98
Chromoting client: video renderer based on MediaSource API.

The new render is not enabled yet by default, but can be enabled using
remoting.settings.USE_MEDIA_SOURCE_RENDERING flag in the webapp.

BUG=321825

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@249338 0039d316-1c4b-4281-b951-d872f2087c98
Freeze animations that are checkerboarding

To avoid flashing checkerboard during transform animations,
we skip draws when any animated layer is checkerboarding.
Without impl-side painting, only very large animated layers
(larger than the viewport) can checkerboard in the first place,
since smaller animated layers are painted in their entirety.
When such layers checkerboard during an animation, they
continue to checkerboard until a commit. However, given the
size of such layers, the commit can take multiple frames. If the
animation continues to progress during the commit,
checkerboarding can persist even after a commit, since the
region rasterized during the commit doesn't match the currently
visible region. Eventually we force a draw, and the
checkerboarding is displayed on screen.

To address this problem, this CL freezes animations when
we cannot draw because of checkerboarding and we don't
have impl-side painting. This ensures that the region that
is rasterized during the commit isn't stale when we draw
after the commit.

BUG=260979

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@249339 0039d316-1c4b-4281-b951-d872f2087c98
Linux: Use FS magic values in magic.h in file_util::GetFileSystemType().

Note: magic.h arrived in Linux 2.6.19 over 7 years ago. If this breaks
builds on very old distros, please switch to nfs_fs.h locally.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@249340 0039d316-1c4b-4281-b951-d872f2087c98
[cros, sync] On Chrome OS user 'display email' for user visible sync status since it preserves dots in email.

BUG=340251
R=atwilson@chromium.org, rogerta@chromium.org

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

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