Hide X11 dependencies when use_x11=0.

When using a non X11 build with Ozone, we still have dependencies on
X11. This patch tries to hide X11 and related dependencies when
use_x11=0

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251981 0039d316-1c4b-4281-b951-d872f2087c98
Refactor device scale factor on Mac and fix CoreAnimation bug

Rename some functions to be more meaningful:
- RWHVMac::scale_factor -> RWHVMac::ViewScaleFactor
- RWHVCocoa::deviceScaleFactor_ -> RWHVMac::backing_store_scale_factor
- ::ScaleFactor(NSView*) -> ScaleFactorForView(NSView*)

Move code to update the scale factor of the backing store from
being in RWHVCocoa::updateTabBackingStoreScaleFactor to be
in RWHVMac::UpdateBackingStoreScaleFactor.

Work around a bug where updating the contentsScale of a
CAOpenGLLayer that dynamically changes its isAsynchronous
property results in corruption by re-creating the CAOpenGLLayer
when a change in scale factor is detected.

BUG=245900

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251982 0039d316-1c4b-4281-b951-d872f2087c98
Fixed broken link in home page

Also updated Udacity Mobile Web Development Course link

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251983 0039d316-1c4b-4281-b951-d872f2087c98
Fixes memory leak in 149313003.

The leak was caused by the modular testing not forcing the run-and-clear of
clean-up callbacks.  This left a callback owned by the object which increment
the refcount of the object.  These callbacks should be removed and a different
method of ensuring cleanup should be employed.

Ideally we can find a way to get rid of the ref-counting on the object to avoid
this sort of issue in the future, but currently the operation manager lives on
the IO thread and the Operation must work on the FILE thread.  A sequenced task
queue or a worker may be useful.

Previous CL: https://codereview.chromium.org/149313003/

BUG=292956
BUG=337883
BUG=335404

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

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251985 0039d316-1c4b-4281-b951-d872f2087c98
Set correct viewport size for an out of process iframe.

This patch adds an IPC for iframe parameter initialization when it has
been swapped out for out of process rendering.

It changes where CrossProcessFrameConnector is being created because
it was being created too late; it is much more useful for it to be able
to receive messages from the swapped out frame as soon as that frame is
swapped out.

There is currently no mechanism for dynamically changing the size of an
iframe. It is not yet clear how this will be implemented in Blink.

Dependency on Blink CL: https://codereview.chromium.org/135163006/

R=creis@chromium.org, jam@chromium.org
BUG=325803

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251986 0039d316-1c4b-4281-b951-d872f2087c98
Remove pp_ifdef from resource files in chrome/browser and chrome/renderer.

Generated using:
> git grep -l pp_ifdef | xargs sed -i "s:pp_ifdef('\([^']\+\)'):\1:g"

BUG=343235

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251987 0039d316-1c4b-4281-b951-d872f2087c98
Fix copy number counting in Files.app.

BUG=343835

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251988 0039d316-1c4b-4281-b951-d872f2087c98
Remove reserved value check in IndependentAndDisposableSamples.

Earlier versions of ISO 14496-12 indicated that the upper 2 bits of
the sample_info was reserved and must be 0. The current version of
ISO 14496-12:2012 now allows these bits to be non-zero so we need to
remove the check so the content will play. The new non-zero values are
not needed by the current code so we don't need any extra logic.

BUG=344737

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251989 0039d316-1c4b-4281-b951-d872f2087c98
[Files.app] Use util.visitURL to open the webstore link

chrome.windows.create has been obsolete and should not be used.

BUG=343317
TEST=manually tested

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251990 0039d316-1c4b-4281-b951-d872f2087c98
Center the experimental app list [ChromeOS]

This CL centers the app list for ChromeOS when the --enable-experimental-app-list flag
is on as a followup to https://codereview.chromium.org/162753002 .

BUG=344442

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251991 0039d316-1c4b-4281-b951-d872f2087c98
linux_aura: Default use_gnome_keyring% to on when use_aura=1.

BUG=342106

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251992 0039d316-1c4b-4281-b951-d872f2087c98
Implement viewporting for the out of process PDF plugin.

BUG=303491

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251993 0039d316-1c4b-4281-b951-d872f2087c98
Fix uninit read in TestRunner.

Only happens if the testrunner methods are invoked with invalid
arguments. Protect against that.

BUG=344762
R=dcarney@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251994 0039d316-1c4b-4281-b951-d872f2087c98
Make ChromeOS shelf use Browser app name to group hosted app windows.

The ChromeOS shelf currently uses the oldest navigation entry's URL to
find the extension to group with on the shelf. This can cause a single
browser window to associate with no launcher item, rendering the
browser window inaccessible. It's also possible to have a changing
launcher item because navigation entries get pruned.

This CL uses the browser's app name to determine the extension for a
hosted app window.

It also causes app tabs to group with a bookmark app if no extension
has a matching extent.

BUG=340590

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251995 0039d316-1c4b-4281-b951-d872f2087c98
try 3 of: Split out InputMethodMenuManager from InputMethodManager.
(I was missing RemoveObserver in one of the tests and as a result ASAN tests were catching use-after-free.)


Rename input_method_property to input_method_menu_item, and move to ash/ime.


BUG=342336, 343044

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251996 0039d316-1c4b-4281-b951-d872f2087c98
Roll trace-viewer to r1160

TBR=dsinclair
NOTRY=True

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251997 0039d316-1c4b-4281-b951-d872f2087c98
Fix RTL UI extension popup anchoring.

BubbleDelegateView::CreateNonClientFrameView mirrors in RTL.
(arrow horizontal positions/anchoring are flipped in RTL UI)
BrowserActionsContainer::ShowPopup should not do the same.
See before and after pictures at http://crbug.com/150696

BUG=150696
TEST=RTL (--lang=he) UI browser/page action extension popups should be anchored at the top left and shouldn't be cut off.
R=sky@chromium.org

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

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251999 0039d316-1c4b-4281-b951-d872f2087c98
Clear reserved flags on synthetic continuations.

Previously when WebSocketBasicStream split a frame that arrived in
several chunks, it would copy the reserved bits from the first frame
onto all subsequent frames.

However, the permessage-deflate extension requires that the RSV1 bit
only be set on the first frame of the message.

For compatability with permessage-deflate, clear the reserved bits on
second and subsequent frames when splitting a frame.

BUG=343507
TEST=net_unittests --gtest_filter=WebSocket*

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

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