[SkiaBenchmarkingExtension] Handle empty pictures gracefully.

Skia's SkDebugCanvas::drawTo() asserts that the command vector is not
empty. We should catch this condition in Rasterize() to avoid crashing
on debug builds.

BUG=(trace-viewer:493)
R=piman@chromium.org, nduca, piman

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232236 0039d316-1c4b-4281-b951-d872f2087c98
Minor cleanup to template code

BUG=None
TEST=None
R=darin@chromium.org, darin

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232237 0039d316-1c4b-4281-b951-d872f2087c98
Revert 232099 "[telemetry] Introduce inject_scripts to replace s..."

> [telemetry] Introduce inject_scripts to replace script_to_evaluate_on_commit.
> 
> This CL is to make webdriver-based browser also supports running some javascript before those in the page are run, because the original script_to_evaluate_on_commit is chrome-specific.
> 
> BUG=none
> TEST=tools/telemetry/run_tests, tools/perf/run_tests --browser=release, tools/perf/run_measurement --browser=release pica, tools/perf/run_measurement --browser=release blink_perf third_party/WebKit/PerformanceTests/, tools/perf/run_multipage_benchmarks --browser=release page_cycler tools/perf/page_sets/page_cycler/moz.json & morejs.json, gpu tests under content/test/gpu/gpu_tests/. No new failures are introduced.
> 
> Review URL: https://codereview.chromium.org/23444006

TBR=chrisgao@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232240 0039d316-1c4b-4281-b951-d872f2087c98
Editable/removable partner bookmarks.

Persists renames/removals of the partner bookmarks and
folders in the user profile.
Details: https://goto.google.com/editable-partnerbookmarks

BUG=266233

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232241 0039d316-1c4b-4281-b951-d872f2087c98
Implement Google network speech synthesis.

See bug for context. Implements a component extension
that provides speech synthesis using Google's speech
synthesis API.

Adds a "remote" flag to the TTS and TTS Engine APIs
so that it's possible for clients to distinguish
between local and remote speech engines.

Adds a new private extension API to expose Google's
API key, needed to make the request.

BUG=308250

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232242 0039d316-1c4b-4281-b951-d872f2087c98
telemetry: Check compositing status in rasterize_and_record.

R=tonyg@chromium.org
BUG=311389

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232243 0039d316-1c4b-4281-b951-d872f2087c98
Prevent scrolls from going to windows in overview.

BUG=313505
TEST=Enter overview and try to scroll a webpage. Page should not scroll.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232244 0039d316-1c4b-4281-b951-d872f2087c98
Disable double tap zoom on mobile sites, to remove 300ms click delay

This patch disables double tap zoom on pages that have a
width=device-width or narrower viewport (indicating that this is a
mobile-optimized or responsive website).

Double tap zoom continues to be disabled for pages that disallow the
user from zooming (even if they don't have a device-width or narrower
viewport).

This causes very noticeable performance benefits: links, buttons,
checkboxes, etc respond within around 10ms instead of 300ms.
Tested this on: http://jsbin.com/ixibol/6

Users shouldn't miss the double-tap gesture in the affected
situations, as double-tap means "zoom until tapped content is legible",
and in all the cases above the content was already legible (already
displayed at 1 or more DIPs per CSS pixel), so double tap zoom didn't
make sense and didn't do much.

BUG=169642
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232245 0039d316-1c4b-4281-b951-d872f2087c98
Add 'Inspect' Links for views in the Extension Error Console

Add the option to inspect a resource or render view in the error console,
opening the developer tools for that resource/view.

Goes with: https://codereview.chromium.org/23816005

BUG=21734
TBR=yoshiki@chromium.org (task_manager)
TBR=ben@chromium.org (ui [refactor only])

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

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

Add the name of the new Android UMA metric.

BUG=304294

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232247 0039d316-1c4b-4281-b951-d872f2087c98
Plumb device scale adjustment separately.

This value was previously computed into the font scale factor.

BUG=252828

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232248 0039d316-1c4b-4281-b951-d872f2087c98
[NaCl SDK] Remove redundant output from SDK build system.

The 'rm' commands to remove libraries before creating
them was outputing warnings when the library did not
exist.  This change adds a -f so the warning is not
printed.

R=binji@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232251 0039d316-1c4b-4281-b951-d872f2087c98
[NaCl Docs] Fix a few TODOs in the FAQ.

Also, make more using of named hyperlinks to avoid
duplicating URLs and/or including long URLs mid-paragraph.

R=binji@chromium.org, eliben@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232252 0039d316-1c4b-4281-b951-d872f2087c98
Docserver: Add a PatchServlet test which checks that hrefs are properly
qualified with _patch/<cl number>. Previously they were just testing
inequality. Fix a bug it found.

R=jyasskin@chromium.org
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232253 0039d316-1c4b-4281-b951-d872f2087c98
Http Cache: Allow caching of 206s that lack content length.

Servers _should_ include content-length with byte range responses but
relax that requirement because some servers don't do that.

BUG=307535
TEST=net_unittests
R=gavinp@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232254 0039d316-1c4b-4281-b951-d872f2087c98
Change the PrefService::GetPreferenceValues() interface to return a scoped_ptr.

Fix leak of DictionaryValue in PrefsFunctionalTest.TestHaveLocalStatePrefs.

BUG=313722
TBR=bauerb@chromium.org, phajdan.jr@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232255 0039d316-1c4b-4281-b951-d872f2087c98
Build fix linux aura without USE_XI2_MT.

touch_factory_x11.cc:96 must not use XScopedString because it is defined ui/base.
ui/base depends on ui/events.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232256 0039d316-1c4b-4281-b951-d872f2087c98
Added top 1000 mobile sha1's.

BUG=
NOTRY=True

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232257 0039d316-1c4b-4281-b951-d872f2087c98
Introduce a NetworkTime class to wrap a Time instance representing real
time. Wrapping is needed to enforce explicit conversion between Time and
NetworkTime to avoid accidentally mixed use of both.

BUG=177072

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232258 0039d316-1c4b-4281-b951-d872f2087c98
Add tests for legacy SDP features.

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

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