Cleanup handling of broken schema in Favicons.

Previous code landed diagnostics which showed some strange schema
cases in the wild.  chrome/test/data/History/thumbnail_wild/ includes
representative schema as golden files for testing by
ThumbnailDatabaseTest.WildSchema.

A number of the edge cases involved transitions from v2 and v3 using
v6 and v7 code, which has now been handled by the version-deprecation
code.  Handle schema with extra temp_ tables by dropping them.  Adjust
Init() so that when existing invalid-structure code fires, the (now
empty) database is immediately re-opened.

Remove a couple unused functions, and move OpenDatabase() to private:.

BUG=272519

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231219 0039d316-1c4b-4281-b951-d872f2087c98
Remove RenderViewHostTracker and just have RenderViewHost tell ResourceDispatcherHostImpl directly.

This removes the last RenderViewHostObserver implementation.

BUG=306569
R=simonjam@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231220 0039d316-1c4b-4281-b951-d872f2087c98
Remove enabled/disabled state from extension and app sync.

BUG=303311

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231221 0039d316-1c4b-4281-b951-d872f2087c98
1) Applies the new malware UI to binaries that change settings
2) Updates the string

BUG=305387

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231222 0039d316-1c4b-4281-b951-d872f2087c98
avoid warnings compiling nacl64.exe

Gets rid of these when building in component=shared_library

breakpad_win64.lib(breakpad_win64.breakpad_win.obj) : warning LNK4049: locally defined symbol ?kProcessType@switches@@3QBDB (char const * const switches::kProcessType) imported
nacl_common_win64.lib(nacl_common_win64.nacl_cmd_line.obj) : warning LNK4049: locally defined symbol ?kLoggingLevel@switches@@3QBDB (char const * const switches::kLoggingLevel) imported
nacl_common_win64.lib(nacl_common_win64.nacl_cmd_line.obj) : warning LNK4049: locally defined symbol ?kDisableLogging@switches@@3QBDB (char const * const switches::kDisableLogging) imported
nacl_common_win64.lib(nacl_common_win64.nacl_cmd_line.obj) : warning LNK4049: locally defined symbol ?kEnableLogging@switches@@3QBDB (char const * const switches::kEnableLogging) imported
nacl_common_win64.lib(nacl_common_win64.nacl_cmd_line.obj) : warning LNK4049: locally defined symbol ?kNoSandbox@switches@@3QBDB (char const * const switches::kNoSandbox) imported
breakpad_win64.lib(breakpad_win64.breakpad_win.obj) : warning LNK4049: locally defined symbol ?kProcessType@switches@@3QBDB (char const * const switches::kProcessType) imported
nacl_common_win64.lib(nacl_common_win64.nacl_cmd_line.obj) : warning LNK4049: locally defined symbol ?kLoggingLevel@switches@@3QBDB (char const * const switches::kLoggingLevel) imported
nacl_common_win64.lib(nacl_common_win64.nacl_cmd_line.obj) : warning LNK4049: locally defined symbol ?kDisableLogging@switches@@3QBDB (char const * const switches::kDisableLogging) imported
nacl_common_win64.lib(nacl_common_win64.nacl_cmd_line.obj) : warning LNK4049: locally defined symbol ?kEnableLogging@switches@@3QBDB (char const * const switches::kEnableLogging) imported
nacl_common_win64.lib(nacl_common_win64.nacl_cmd_line.obj) : warning LNK4049: locally defined symbol ?kNoSandbox@switches@@3QBDB (char const * const switches::kNoSandbox) imported

R=joi@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231223 0039d316-1c4b-4281-b951-d872f2087c98
cc: Don't check IsLost for PrioritizedResources.

If a resource is lost, it's in the parent compositor forever, so
deleting the resource will not free the data neccessarily, and we
can never reuse the texture. Simplify things by just checking
IsUseByConsumer() and not checking for !IsLost().

R=ccameron, piman
BUG=292971

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231224 0039d316-1c4b-4281-b951-d872f2087c98
Add a metric to measure the keyboard load time.

This involves adding a new extension api that's a callback called by the Keyboard code when all keyboard elements are loaded. This can be used for other purposes in the future, such as allowing the ash/aura side to show a loading animation, or handle showing of the keyboard differently.

BUG=265326
TEST=Start Chrome OS and focus on a text box and wait for the keyboard to appear. Then go to chrome://histograms and ensure that Keyboard.FirstLoadTime appears and the measurement is roughly how long it took for the keyboard to fully appear after focusing the text box.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231225 0039d316-1c4b-4281-b951-d872f2087c98
Disable delegated rendering in content_shell --dump-render-tree.

With delegated rendering enabled in Win Aura, all pixel test dumping is broken.

R=jamesr@chromium.org, piman@chromium.org, jochen@chromium.org
BUG=311404

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231226 0039d316-1c4b-4281-b951-d872f2087c98
Update V8 to version 3.22.22.

TBR=danno@chromium.org

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

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231228 0039d316-1c4b-4281-b951-d872f2087c98
Switch running V1 app launcher items between users desktops

BUG=309024
TEST=unittest (and of course also tested visually)

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231229 0039d316-1c4b-4281-b951-d872f2087c98
Read and process up to 32 QUIC packets before yielding to the message loop.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231230 0039d316-1c4b-4281-b951-d872f2087c98
AndroidVDA: only engage if it's likely that the codec is backed by hardware.

BUG=311581

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231231 0039d316-1c4b-4281-b951-d872f2087c98
(1 of 2) Move InvalidationController to chrome/

Move the InvalidationController Java class from sync/notifier to
chrome/browser/invalidation.  Move its IntentProtocol inner class into
its own class, InvalidationIntentProtocol, and keep it in sync/notifier.

In order to prevent this change from breaking the downstream build, a
reduced version of InvalidationController has been left behind in the
old location.  The second part of this patch will remove it.

An unfortunate side effect of having two InvalidationControllers is that
they may be double-notified when the when the activity state changes,
and this may cause the start or stop signals to be sent to the
InvalidationService twice.  This is wasteful, but otherwise mostly
harmless.

TBR=jhawkins
BUG=172391

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231232 0039d316-1c4b-4281-b951-d872f2087c98
Telemetry: run media.tough_video_cases using WPR

BUG=311713

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231233 0039d316-1c4b-4281-b951-d872f2087c98
Mac: Return the primary display if [window screen] is NULL.

If a WebContents is parented to a hidden NSWindow the screen will be NULL.
This change fixes a problem where the the device scale factor returned from
RenderWidgetHostViewMac::GetScreenInfo() was 0 (due to the invalid display)
causing canvas creation to fail in RenderWidget.

BUG=311690
TEST=none

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231234 0039d316-1c4b-4281-b951-d872f2087c98
Make NetworkChangeNotifier use the application context

When you have multiple Activities using the notifier, it's entirely possible that
the original context it used will be destroyed by Android.  Use the ApplicationContext
instead.

BUG=311659

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231235 0039d316-1c4b-4281-b951-d872f2087c98
cc: Modify RenderPass::transform_to_root_target in DRLayerImpl.

DelegatedRendererLayerImpl needs to transform everything in its output
by the transforms with which the layer itself will be drawn. It was
transforming the contents of all its quads, but missed transforming its
render passes. Each RenderPass::transform_to_root_target needs to have
the DelegatedRendererLayerImpl's screen space transform included in
it.

Tests:
DelegatedRendererLayerImplTestSimple.RenderPassTransformIsModified

R=enne
BUG=311315

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231236 0039d316-1c4b-4281-b951-d872f2087c98
Remove libc version checks from CDM tests.

All of the official bots and developers should be upgraded to Precise now, so
we don't need these checks in the tests.
We continue to check in the production code.

TEST=Tests continue to pass on official bots.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231237 0039d316-1c4b-4281-b951-d872f2087c98
Remove helper function that was needed only in 10.5.

The contents of a CALayer can be set to an NSImage* as of 10.6.

BUG=none
TEST=no changes in download started animation or in tabpose

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

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