Quick fix for extension doc server crashing because of bad viewvc HTML

Surrounded the offending code in a try/except block, and a minor fix for a
test to work with Python 2.6.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192441 0039d316-1c4b-4281-b951-d872f2087c98
[sync] Add device type to user agent

Adds TABLET or PHONE to user agent string which is used when connecting
to the sync server.

BUG=177046


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192442 0039d316-1c4b-4281-b951-d872f2087c98
Move //tools/metrics into //components/ directory.

BUG=223859
R=joi@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192443 0039d316-1c4b-4281-b951-d872f2087c98
[Android] Attempt to fix timeouts on Android bots.

Use subprocess communicate for getting md5sum hashes on the host.

BUG=224382
TBR=craigdh@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192444 0039d316-1c4b-4281-b951-d872f2087c98
Callbacks cannot be owned by Java

Would like to merge js_result_handler into aw_javascript_dialog_manager
as it is not that much code, and it would mean one less global.

BUG=


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192445 0039d316-1c4b-4281-b951-d872f2087c98
Instant Extended: Add a was_replaced to ActiveTabChanged

This CL adds a ChangeReason parameter to the ActiveTabChanged notification. This allows observers to know when a tab change was caused by the web contents of a tab being replaced by another web contents.

This CL is needed for the following instant extended work: https://codereview.chromium.org/12792013/

BUG=181095

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192446 0039d316-1c4b-4281-b951-d872f2087c98
Omnibox: Don't Allow Navsuggestion (even from cached results) in Keyword Mode

This is an improved version of
https://chromiumcodereview.appspot.com/13031006

Here is the changelist description for that commit.  The description
still applies.
---
In keyword mode, demote all navsuggestion results below the best ranking
keyword query mode.  This is necessary so a navsuggestion doesn't appear
inline, which would end up kicking the user out of keyword mode.

This has to be done in SearchProvider.  It cannot be done on the suggest
server side because the suggest server does not know whether it is
serving results to a default search engine or a keyword search engine.

Note: there can be bad cases when the default search engine and the keyword
search engine both supply relevance scores.  I haven't thought those these 
issues yet as we only know of one engine that supplies scores at this
time.  (And if the same engine is used for the default and keyword search
engine then it's only queried once, so these concerns don't apply.)
---

This new, improved version enforces the constraint latter in the
processing that the current version.  The issue with the current
version is that a navsuggest result could end up appearing first
if it's a result from a previous suggest query and passes the is-not-stale
test (and the query result that previously appeared higher does not).
This is because the constraint used to be enforced during
ParseSuggestResults() which only gets called, uh, after suggest results
have been fetched, being the constraint-fixing logic did not run
for results served before suggest results are returned.

This new placement of the enforcing logic applies all the time and
is more consistent with the location of other enforcing logic.

I should've listened to Mike all along...

By the way, the last paragraph in the original changelist description still
applies.

BUG=196550


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192447 0039d316-1c4b-4281-b951-d872f2087c98
Storage Monitor: Remove deprecated StorageInfo ctor.

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

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

This moves OutputConfigurator's X11 code into a separate
delegate class to make testing possible.  It also removes
some ugliness in the form of Displays, XRRScreenResources,
and Windows getting passed between methods.  No functional
changes are intended.

BUG=225536


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192449 0039d316-1c4b-4281-b951-d872f2087c98
Change media infobar icon images.


BUG=176939


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192450 0039d316-1c4b-4281-b951-d872f2087c98
browser_tests.isolate on linux: Traced two test cases.

Sadly, I had to run the tracer under sudo to be able to trace properly. The
flag is not visible at the command line for isolate_test_cases.py so I modified
the script manually.

Autogenerated with:
  tools/swarm_client/isolate_test_cases.py \
      -s out/Release/browser_tests.isolated -T foo

Where ./foo contained:
  PepperContentSettingsTest.PluginSpecialCases
  PlatformAppBrowserTest.WebContentsHasFocus

TBR=csharp@chromium.org
NOTRY=true
BUG=


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192451 0039d316-1c4b-4281-b951-d872f2087c98
Add per-file owners for chrome_android.gypi

Copies the list of OWNERS from chrome/android
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192452 0039d316-1c4b-4281-b951-d872f2087c98
views: Do not open popup on Paste+Go.

BUG=214335
TEST=Manually tested affected commands + browsertest.


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192453 0039d316-1c4b-4281-b951-d872f2087c98
Extract GetSerialNumber() from inner loop

This call is a bit slow, and is especially noticeable when only
few/no libraries need to be pushed. Also, we only need to write the new
md5 stamp if it has actually changed (i.e. it is stale).

BUG=158821


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192454 0039d316-1c4b-4281-b951-d872f2087c98
Add PP_VideoFrame, PPB_VideoReader, and PPB_VideoWriter APIs to Pepper.
Defines a PP_VideoFrame struct, and 2 new APIs,PPB_ VideoReader to consume a video stream, and
PPB_VideoWriter to generate a video stream.

BUG=none
TEST=none


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192455 0039d316-1c4b-4281-b951-d872f2087c98
New network error pages:  Fix using LTR with RTL languages
in the expandable details / suggestions area.

BUG=174194

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192456 0039d316-1c4b-4281-b951-d872f2087c98
Make apk_install.py check input md5

Since we have to always trigger the apk install action, we should only
reinstall the apk when it doesn't match the one (we think) is installed
to the device.

BUG=158821


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192457 0039d316-1c4b-4281-b951-d872f2087c98
unit_tests.isolate on OSX: Traced 25 test cases.

Autogenerated with:
  tools/swarm_client/isolate_test_cases.py -s out/Release/unit_tests.isolated -T foo

Where ./foo contained 25 test cases. Sadly I had to kill dtrace since it hung
after the trace.

TBR=csharp@chromium.org
NOTRY=true
BUG=


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192458 0039d316-1c4b-4281-b951-d872f2087c98
Restore a minimized fullscreen window in immersive fullscreen.

BUG=180984
Test=Manual, see steps below
Testing steps:
1) Run Chrome for ChromeOS with --ash-immersive-fullscreen
2) Go into fullscreen by pressing F11
3) Click on the "maximize button" and drag down and release
4) Restore the window which was just minimized
5) The restored minimized window should be back in immersive fullscreen.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192460 0039d316-1c4b-4281-b951-d872f2087c98
Roll cacheinvalidation forward to @296 (April 2013 client release).

Summary of changes:
* Remove start-related precondition checks from InvalidationClientCore.
* Replace scoped_ptr(NULL) with scoped_ptr().
* Remove a couple of unused includes/using declarations.
* Client version is now pulled from build_constants.h.

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

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