IndexedDB: Fix cursor prefetching edge cases

Cursor prefetch caches must be discarded when other
requests are made to ensure proper request sequencing.
Two edge cases were handled improperly if new records
was written just ahead of the cursor.

* A reset occurring before the prefetch results were
received would be ignored; since the newly records
weren't in the prefetch data, the cursor wouldn't see
them.

* A reset occurring after the results are received
would back up the cursor to before the new records,
even though the prefetch itself is a "continue"
and advanced past them already.

The fix is to reset the cache on receipt if necessary,
and to ensure the reset state accounts for the implicit
advance.

BUG=331570

Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=243344

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@243421 0039d316-1c4b-4281-b951-d872f2087c98
Strips leading and trailing whitespace from tooltip

Windows was automatically doing this for us before. I can't think of a
good reason not to do it every where.

BUG=331209
TEST=covered by unit test
R=varunjain@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@243422 0039d316-1c4b-4281-b951-d872f2087c98
Move ExtensionService::GetExtensionById() to ExtensionRegistry

This will allow app_shell to use it without an ExtensionService

BUG=none
TEST=added unit_tests ExtensionRegistryTest.GetExtensionById
R=yoz@chromium.org
TBR=pkotwicz@chromium.org for chrome/browser/themes

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@243423 0039d316-1c4b-4281-b951-d872f2087c98
Pass through the parent_tab_id when creating a new tab.

BUG=328080
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@243424 0039d316-1c4b-4281-b951-d872f2087c98
Fix JNI generation dependency in android_webview_unittests.

In the current gyp rules, the unittests depend on the following three
children: (1) java, (2) native and (3) jni generation. This is not
correct as (2) has a functional dependency on (2). Having (3) being a
sibling of (2), as it is now, introduces a race when building the
unittest target from clean.
This change fixes the problem making the jni generation step a
dependency of the native build, rather than a sibling.

BUG=None
TEST=ninja -C out/Debug android_webview_unittests_apk
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@243426 0039d316-1c4b-4281-b951-d872f2087c98
Include order check should work better for files containing uncheckable includes

Currently as soon as we see an uncheckable include (like ipc/*macros.h or
windows.h) we stop checking the file. Instead we should just skip that line
and continue checking.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@243427 0039d316-1c4b-4281-b951-d872f2087c98
[Android] Fixes app crash when using both enable and disable delegated renderer command line switch.

The function UsingDelegatedRenderer should also check for command line switch
--disable-delegated-renderer's presence while determining the usage of
delegated renderer.

BUG=330714

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

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

It's no longer used.

BUG=
TBR=binji

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@243429 0039d316-1c4b-4281-b951-d872f2087c98
[rAc - libaddressinput] slay another helper class

remove AddressValidator; the functionality will be added to AddressValidator

BUG=none

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@243430 0039d316-1c4b-4281-b951-d872f2087c98
cc: Remove racy initialization code in cc/base/switches.cc.

This moves all lazy initialization code out of cc/base/switches.cc. Code
that needs the value of these switches in a critical path should not rely
on lazy initialization in cc/switches.cc but instead handle this on its own.

Thread-safe lazy initialization code of impl-side painting status has
been added to WebLayerImpl.

This also removes the cc::switches::IsGPURasterizationEnabled() function,
which for consistency should not exist unless the logic to determine the
value is more complicated than HasSwitch(kEnableGPURasterization). This
function was never used in performance sensitive code so lazy initialization
was never necessary.

BUG=330937
TBR=jamesr

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@243432 0039d316-1c4b-4281-b951-d872f2087c98
Create a watchlist for libwebp

BUG=
R=jzern@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@243433 0039d316-1c4b-4281-b951-d872f2087c98
[Views] Hook up the "Remove" button in the collected cookies dialog.

BUG=168996
TEST=Go to google.com, click on the lock icon, click on "Show cookies", and remove site data from the Allowed pane.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@243434 0039d316-1c4b-4281-b951-d872f2087c98
DrMemory: Disable IEImporterBrowserTest.IEImporterMalformedFavoritesRegistry which times out occasionally.

BUG=332219
NOTRY=true
TBR=zhaoqin@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@243435 0039d316-1c4b-4281-b951-d872f2087c98
Revert of https://codereview.chromium.org/106173002/
Reason for revert: this introduced a package dependency bug where ia32-libs cannot be installed on ubuntu precise systems

TBR=kkimlabs@chromium.org,cjhopman@chromium.org,pschmidt@chromium.org
NOTREECHECKS=true
NOTRY=true
BUG=290225

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@243437 0039d316-1c4b-4281-b951-d872f2087c98
Revert 243413 "Resize the widget when top level popup windows cr..."

> Resize the widget when top level popup windows created by the content layer are resized.
> 
> The content layer creates top level popup windows, for select items on a page for e.g. When these
> windows are resized we need to resize the parent widget hosting them.
> 
> BUG=330596
> TEST=Covered by views test DesktopAuraTopLevelOwnedPopupResizeTest
> R=sky@chromium.org
> 
> Review URL: https://codereview.chromium.org/125203005

TBR=ananta@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@243438 0039d316-1c4b-4281-b951-d872f2087c98
ToplevelWindowEventHandler::HandleMousePressed() has some comments about only handling events post target. Those comments are untrue so remove them.
It is also non trivial to get the originally desired behavior, namely getting mouse events to HTML elements with the "-webkit-app-region" CSS style applied. 

BUG=None
TEST=None

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@243439 0039d316-1c4b-4281-b951-d872f2087c98
[rAc - libaddressinput] slay a Helper class.

For better memory ownership.

BUG=none

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@243440 0039d316-1c4b-4281-b951-d872f2087c98
[Telemetry]: Move assert on page measurement results name into Value object.

The use of a '.' in a trace name only breaks the telemetry value result if it
occurs in a value which does not have a trace_name.  This CL moves the assert
into the Value object so that the assert doesn't fire in other situations
(such as the media.tough_media_cases benchmark), where the use of the '.' is
actually ok.

BUG=332041,329845

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@243441 0039d316-1c4b-4281-b951-d872f2087c98
Relanding this change with the DesktopAuraTopLevelOwnedPopupResizeTest enabled only for Windows.

Revert 243438 "Revert 243413 "Resize the widget when top level p..."

> Revert 243413 "Resize the widget when top level popup windows cr..."
> 
> > Resize the widget when top level popup windows created by the content layer are resized.
> > 
> > The content layer creates top level popup windows, for select items on a page for e.g. When these
> > windows are resized we need to resize the parent widget hosting them.
> > 
> > BUG=330596
> > TEST=Covered by views test DesktopAuraTopLevelOwnedPopupResizeTest
> > R=sky@chromium.org
> > 
> > Review URL: https://codereview.chromium.org/125203005
> 
> TBR=ananta@chromium.org
> 
> Review URL: https://codereview.chromium.org/127073003

TBR=ccameron@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@243442 0039d316-1c4b-4281-b951-d872f2087c98
Revert of https://codereview.chromium.org/126823002/
Reason for revert: breaks license checker

TBR=darin@chromium.org
NOTREECHECKS=true
NOTRY=true
BUG=318315

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

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