Revert 200947 "[Telemetry] Create a tools/perf/run_measurement s..."

Suspected for emerge failures, breaking CrOS bots.

autotest-telemetry-0.0.1-r181: >>> Compiling source
autotest-telemetry-0.0.1-r181:  * telemetry_LoginTest
autotest-telemetry-0.0.1-r181: ERROR:root:telemetry_LoginTest import error: No module named telemetry.core.  Skipping telemetry_LoginTest

> [Telemetry] Create a tools/perf/run_measurement script.
> 
> This script will be used for running a measurement with a page set, file or URL.
> 
> It will be a backend for the forthcoming tools/perf/run_benchmark.
> 
> BUG=237412
> TEST=tools/perf/run_measurement --browser=release page_cycler tools/perf/page_sets/page_cycler/moz.json
> NOTRY=True
> 
> Review URL: https://chromiumcodereview.appspot.com/15377002

TBR=tonyg@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201005 0039d316-1c4b-4281-b951-d872f2087c98
Add shortcut path for scaling integer rects.

This adds a method to scale and take the enclosing/enclosed rect
for an integer rect, and uses it in cc/.

This method avoids mode complex methods in safe_integer_conversions
since the input is an integer rect not an arbitrary float rect.

This moves the ImplSidePaintingPerfTest.HeavyPage test from about
0.96 ms/commit to about 0.92 ms/commit.

R=enne, sky
BUG=239684

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201006 0039d316-1c4b-4281-b951-d872f2087c98
Fix bug in InitParseWithoutQuestion

Fix crash in cases where the buffer is smaller than the size of the DNS header.

BUG=241891
TEST=DnsResponseTest.InitParseWithoutQueryPacketTooShort

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201007 0039d316-1c4b-4281-b951-d872f2087c98
Merge ConstructSpdyReplyString into SpdyTestUtil

BUG=226192

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201008 0039d316-1c4b-4281-b951-d872f2087c98
cc: Move the twin tiling lookup out of the per-tile loops.

This is a virtual function call, we can call it once instead of
every trip through the loop.

R=enne
BUG=239684

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201009 0039d316-1c4b-4281-b951-d872f2087c98
[Telemetry] Crash more gracefully.

- If inspector tells us the tab has crashed, crash immediately.
- Don't try to run javascript in a crashed tab.

BUG=None
TEST=Ran a measurement on a custom binary that crashes
NOTRY=True

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201010 0039d316-1c4b-4281-b951-d872f2087c98
Move StaleCacheFilesRemover and SyncClient into internal namespace.

These classes are the detailed implementation of drive file system. So move them
into internal namespace.

BUG=230235
TEST=Ran unit_tests

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201011 0039d316-1c4b-4281-b951-d872f2087c98
Drop shadows for packaged apps on the OSX App Launcher.

Adds a custom NSButtonCell for AppsGridViewItem that overrides
drawImage to set up a graphics context to draw a shadow, before
calling the superclass implementation.

BUG=138633
TEST=Open OSX app lancher, icons without the shortcut overlay should
have a drop shadow.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201012 0039d316-1c4b-4281-b951-d872f2087c98
Restrict mmap(2) and mprotect(2) flags for x64.

(Reland of https://codereview.chromium.org/15112008 and https://codereview.chromium.org/15104005)

BUG=241220
TBR=jln@google.com

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201013 0039d316-1c4b-4281-b951-d872f2087c98
Files.app: Fix linear-gradient angle to match the latest CSS spec.

The angle of "linear-gradient" should be specified by "to xxxx" format, according to the spec.
http://dev.w3.org/csswg/css-images-3/#linear-gradient-type

BUG=none
TEST=none
R=mtomasz@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201014 0039d316-1c4b-4281-b951-d872f2087c98
Create separate sections for available/unavailable flags. 

On Linux, searching for "this experiment is not supported" returns 23 
results. To make it a little easier to navigate, create a separate
section to list all the unsupported experiments.

BUG=179649

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201015 0039d316-1c4b-4281-b951-d872f2087c98
The moves the compositor thread's input event cracking logic in to content/ from Blink.  This significantly decreases the amount of plumbing involved with setting up and tearing down the input filtering and makes it easier to extend without having to go through API rolls.

The startup sequence is as follows, all in the render process:

1.) [main thread] Compositor initialized in content::RenderWidgetCompositor::Create(). During initialization, cc::LayerTreeHost grabs a base::WeakPtr<cc::InputHandler> bounds to the compositor thread.  The cc::InputHandler interface is implemented by cc::LayerTreeHostImpl.

2.) [main thread] RenderViewImpl::didActivateCompositor() grabs a WeakPtr to itself and a WeakPtr<cc::InputHandler> from the RenderWidgetCompositor and calls InputHandlerManager::AddInputHandler()

2.) [main thread] InputHandlerManager grabs a WeakPtr<> to its MessageLoopProxy posts a task to itself on the compositor thread to AddInputHandlerOnCompositorThread()

3.) [compositor thread] InputHandlerManager::AddInputHandlerOnCompositorThread() checks if the WeakPtr<cc::InputHandler> is still valid. If the WeakPtr has been invalidated or there's already an entry for this routing_id, it bails. Otherwise InputHandlerManager adds the new routing_id to the filter (which takes a lock on the [ipc thread]) and constructs a new InputHandlerWrapper and adds it to its input_handlers_ map

4.) [compositor thread] InputHandlerWrapper constructs a new InputHandlerClientImpl

5.) [compositor thread] InputHandlerProxy binds itself as the client for the cc::InputHandler

After this completes successfully, the cc::LayerTreeHostImpl has a weak (raw) pointer to the cc::InputHandlerClient, which is the content::InputHandlerProxy, and the InputHandlerProxy has a weak (raw) ptr to the cc::InputHandler, which is the cc::LayerTreeHostImpl.  The flow for incoming IPCs is thus:

1.) [ipc thread] IPC message arrives and is dispatched at all IPC filters.

2.) [ipc thread] InputEventFilter::OnMessageReceived checks if the message is an InputMsg_ type. If so, it takes a lock on routes_ and checks if the IPC is intended for a routing_id with filtering. If so, it posts the message to the InputHandlerManager (via ForwardToHandler). If any of these checks fail, the filter rejects the message (returns false) and the IPC goes down the normal handling path which routes it to the main thread.

3.) [compositor thread] InputHandlerManager::HandleInputEvent() looks for an entry in its input_handlers_ map matching the message's routing_id. If there is one, it calls InputHandlerProxy::HandleInputEvent().  If there isn't, it sends the input event to the main thread.

4.) [compositor thread] InputHandlerProxy::HandleInputEvent() examines the fields on the input event and determines what set of logical scroll/pinch/whatnots should occur as a result of the event.  To do this, it communicates with the compositor via the cc::InputHandler.  After it has determined the disposition of the event, it returns a status to its embedder via the content::InputHandlerProxyClient interface (which is the content::InputHandlerWrapper).

5.) [compositor thread] content::InputHandlerWrapper forwards the event disposition back to the InputEventFilter, which can forward the message to the main thread or send an ACK as appropriate.

Shutdown:

1.) [compositor thread] ~cc::LayerTreeHostImpl() calls WillShutdown() its input_handler_client_, which is a content::InputHandlerProxy

2.) [compositor thread] content::InputHandlerProxy::WillShutdown() calls client_->WillShutdown()

3.) [compositor thread] content::InputHandlerWrapper::WillShutdown() calls input_handler_manager_->RemoveInputHandler() for its routing_id

4.) [compositor thread] content::InputHandlerManager::RemoveInputHandler() calls filters_->RemoveRoute(), which takes a lock on the InputEventFilter's routing table and removes the id, then erases the matching input_handlers_ entry which derefs the InputHandlerWrapper

After step 4 no more messages will be posted from the ipc thread to the compositor thread for the given routing id, but of course any number of tasks may already be posted.  When these tasks run InputHandlerManager::HandleInputEvent() will find no matching entries in the input_handlers_ map and will send the messages back to the main thread.


BUG=236096

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201016 0039d316-1c4b-4281-b951-d872f2087c98
Extract ProfileLoader from AppListServiceImpl.

This is a refactor to encapsulate profile loading in AppListServiceImpl.

TEST=No functional changes
BUG=None
TBR=sky@chromium.org,xiyuan@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201017 0039d316-1c4b-4281-b951-d872f2087c98
FileAPI: Copy base::FileUtilProxy::Entry to fileapi::DirectoryEntry

Copy (not move for now) Entry struct for directory operations from
base/files/file_util_proxy.h to webkit/fileapi/directory_entry.h
since only FileAPI/FilesystemAPI use the struct. This change contains
only mechanical changes.

base::FileUtilProxy::Entry will be removed in a separate change.


BUG=240245
TEST=none (should pass all existing tests)

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201018 0039d316-1c4b-4281-b951-d872f2087c98
Restore functionality of chrome.location API.
CL (https://codereview.chromium.org/15000006/) disables functionality of chrome.location API is is intended for merging to M28.

The original reason for disabling it is likely resolved by already landed CLs:
https://codereview.chromium.org/14869009/
https://codereview.chromium.org/14969010/

The only way to find out whether the above fixes were successful is to enable the API again (in Canary/Dev and for component extensions). This is what this CL is doing. It won't be merged into M28.

BUG=230943

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201019 0039d316-1c4b-4281-b951-d872f2087c98
Remove managed user elevation related to extensions.

BUG=241383

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201020 0039d316-1c4b-4281-b951-d872f2087c98
SyncFS: Add --enable-drive-api-for-syncfs flag

To disable Drive API in SyncFS during migration,
add "--enable-drive-api-for-syncfs" flag (Default is false).

This is separated from https://codereview.chromium.org/15097007/


BUG=234557
TEST=none

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201021 0039d316-1c4b-4281-b951-d872f2087c98
Add layer tree settings flag for pinch virtual viewport.

BUG=none

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201022 0039d316-1c4b-4281-b951-d872f2087c98
Fix link to NVidia Control X Extension Library homepage

Missing scheme in the link made it not work.

BUG=

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201023 0039d316-1c4b-4281-b951-d872f2087c98
Update libjingle 320:321.

R=sergeyu@chromium.org, wjia@chromium.org

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

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