Avoid calling OnDownloadCreated() on download resumption.

BUG=7648
R=benjhayden@chromium.org


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@191096 0039d316-1c4b-4281-b951-d872f2087c98
Bumping version of the component extension after changing persisted data format.

A recent change introduced a bit of the data that persists in storage between startups of the extension ('pendingDismissals'). In order to correctly initialize it, we need 'onInstalled' event to fire. For the component extension, to force 'onInstalled' event, we need to bump the extension version.

BUG=224322
TEST=Don't uninstall Canary from the machine where you saw the assert! Wait for the Canary to be auto-updated to the build created after this CL lands. Verify that the extension now starts without assert.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@191097 0039d316-1c4b-4281-b951-d872f2087c98
Make SharedMemory track the size that was actually mapped

In the process I also had to fix several dependencies, and
some major issues in transport DIBs.

BUG=60819

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@191098 0039d316-1c4b-4281-b951-d872f2087c98
Revert 191086 "cc: Switch RenderingStats collection in Layer::Up..."

Looks like its DCHECKing on Win Aura interactive_ui_tests again. Same
error as before.

http://build.chromium.org/p/chromium.win/buildstatus?builder=Win%20Aura%20Tests%20%283%29&number=2148

> cc: Switch RenderingStats collection in Layer::Update() to RenderingStatsInstrumentation
> 
> This change switches all of the remaining RenderingStats collection in
> composited mode to use RenderinStatsInstrumentation.
> 
> BUG=181319
> 
> 
> Review URL: https://chromiumcodereview.appspot.com/12426024

TBR=egraether@chromium.org
Review URL: https://codereview.chromium.org/13145002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@191101 0039d316-1c4b-4281-b951-d872f2087c98
Automated Commit: Committing new LKGM version 3917.0.0 for chromeos.

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@191106 0039d316-1c4b-4281-b951-d872f2087c98
Fix typos, wrong links, punctuation and other issues in extension docs

Fix typos in several docs.
Fix legacy reference to <object> tag.
Fix Chinese quotation marks in code snippets.
Remove reference to 'extensions' in APIs available for apps only.
There're also other minor changes.

BUG=none
TEST=none

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@191107 0039d316-1c4b-4281-b951-d872f2087c98
Online Wallet latency metric collection


BUG=224157

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@191108 0039d316-1c4b-4281-b951-d872f2087c98
Fix panel alignment on a second display using consistent coordinate space.

BUG=224242
TEST=PanelLayoutManagerTest.PanelAlignmentSecondDisplay


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@191109 0039d316-1c4b-4281-b951-d872f2087c98
Fixed issues with GpuTabTest.testScreenshot on OSX with Retina displays


BUG=222656


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@191110 0039d316-1c4b-4281-b951-d872f2087c98
Fix HE-AAC v1 configuration parsing & 'unknown duration' for live handling.


BUG=224306


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@191111 0039d316-1c4b-4281-b951-d872f2087c98
cc: Add command line switches for impl-side painting constants.

This adds necessary command line switches for adjusting
the amount of prepainting allowed with impl-side painting.

BUG=178317


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@191112 0039d316-1c4b-4281-b951-d872f2087c98
Added two ICU RTL function jni bindings.

BUG=222672


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@191113 0039d316-1c4b-4281-b951-d872f2087c98
Omnibox: Refactor SearchProvider to Move CalculateRelevance Logic to Result Class

This change moves the CalculateRelevance logic to within the Result
class.  It's the first in a long series of planned refactorings.

This change is intended to cause no change in behavior.

BUG=175595


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@191114 0039d316-1c4b-4281-b951-d872f2087c98
Audio dbus API integration with chrome.

There is only one audio dbus API left out, GetNodes, since the protocol buffer for output data is not implemented by the audio team yet. I will added this one in once the protocol buffer is implemented.

BUG=160311


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@191115 0039d316-1c4b-4281-b951-d872f2087c98
Fix crash in chrome.sessionRestore.restore API.

If an extension calling chrome.sessionRestore.restore is loaded with --load-extension switch, the method can't find a browser and crashes.

BUG=224136

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@191116 0039d316-1c4b-4281-b951-d872f2087c98
Add more suppressions for TSan v2:

 -- suppress false positives in libflashplayer and libglib
 -- race in content::BrowserThread::GetCurrentThreadIdentifier (issue 115540)
 -- races above PassRefPtr (issue 223955)

BUG=115540,223955
Review URL: https://codereview.chromium.org/12545071

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@191117 0039d316-1c4b-4281-b951-d872f2087c98
Optimize AudioRendererAlgorithm for playback_rate ~= 1 and muted cases.

It's silly that we copy frame by frame (4 bytes for 16bit stereo) in
the most common case instead of a single large copy (~2048 bytes on
average).

Also, while I hadn't originally intended to optimize the muted case,
in the process of analysis I found some bugs.   Certain frame sizes
will cause early aborts when the algorithm incorrectly runs out of
bytes to cross fade.  The easiest fix was to optimize muting :) I
also modified the unittest to expose this issue.

Optimized v.s. Original AudioRendererAlgorithmTests:
FillBuffer_NormalRate: 25.4ms vs 673.6ms, ~26.5x speedup.
FillBuffer_QuarterRate: 22.2ms vs 247.2ms, ~11.1x speedup.
FillBuffer_EightTimesRate: 50.6ms vs 3367.8ms, ~66.6x speedup.

Tests were run 5 times each, with a frame size of 480 over 120
seconds of 48kHz 16bit stereo audio.

BUG=none
TEST=manual playback and unittests.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@191118 0039d316-1c4b-4281-b951-d872f2087c98
[net/dns] When serving AF_UNSPEC addresses from DnsHosts, serve one from each family.

DnsHosts stores at most one address for each hostname per family. When resolving
requests for unspecified family, serve both of them (with IPv6 first and
IPv4 second) if present.

BUG=117850


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@191119 0039d316-1c4b-4281-b951-d872f2087c98
Add theme attribution to local NTP.

BUG=224025


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@191120 0039d316-1c4b-4281-b951-d872f2087c98
Re-land silence detection for audio output UI favicon indicator with crash fixes.

Consists of these two changes, which have been reviewed, and should land together:

1. Rebased r189095: Silence detection for audio output UI favicon indicator.  https://codereview.chromium.org/12426002/
2. Close gap (pun intended) causing duplicate deletes in AudioRendererHost.  https://codereview.chromium.org/13008004/

BUG=178343,178934,222593,222597
TBR=dalecurtis,scherkus,cpu,avi


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

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