Chrome should never attempt to launch in Metro if it is no longer default browser


BUG=155079


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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@161698 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
chromeos: Remove extra D-Bus call on screen unlock.

ScreenLocker calls the session manager's
HandleLockScreenDismissed D-Bus method twice whenever the
screen is unlocked.  The first time, the lock screen hasn't
actually been dismissed yet.

BUG=none


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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@161699 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Don't access the floppy drive from media galleries.

Also, stop using GetVolumeInformation since it seems to hang some times.

BUG=153763


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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@161701 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Share this page menu item enabled within Incognito window.

Since web intents are not working in incognito window (issue 142463), hide 'share this page'
menu item in incognito mode until the issue gets fixed.

Patch from Joe Thomas <mhx348@motorola.com>.

BUG=152835
TEST=As mentioned in the bug report


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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@161710 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
[Coverity] Dead code removal

CID=106353
BUG=none

R=sail@chromium.org


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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@161712 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Restored partial rasterization for AlphaBlend.
Fixed incorect transformation in RasterizeAlphaBlendProc.

BUG=152204


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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@161713 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
fix uninitialized variable warning for vs2012 compilation

R=sky@chromium.org
BUG=155147, 143646


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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@161715 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Mac Web Intents: Fix crash in explicit intent

When the explicit intent picker dialog was closed the browser would crash.

The problem was that there was a small window of time where the picker would be closed by the WebIntentPickerViewController object was still alive. During this time the WebIntentInlineDispositionDelegate would send an update that would cause us to deference a stale model_ reference.

Currently it's not possible to synchronously delete the WebIntentPickerViewController object. My fix is to simply unset model_ when closing the picker.

BUG=152010


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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@161716 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Move extension_action.* from common/ to browser/

This is the third step of a four-part refactoring to simplify icon
handling.  The final part will be to move the icon-loading and
-caching classes into ExtensionAction methods.

BUG=153463


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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@161718 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Refactor: Move check for kEnableFramelessConstrainedDialogs into common function

This CL moves the check for kEnableFramelessConstrainedDialogs into a common function. This will make it easier to enable / disable this feature by platform.

BUG=140551

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@161722 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Do not activate Metro Chrome when a chrome.exe is called with a short-lived command.


BUG=155625


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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@161723 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Replace extension_switch_utils.h with feature_switch.h.

BUG=135503
TBR=jhawkins@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@161725 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Fix failing browser tests when running with force-compositing-mode. It uses new trace events checked in by: http://trac.webkit.org/changeset/128785 to properly track WebGL and accelerated canvas instead of relying on
the swap-buffers calls (which get issued anyway, when in FCM). 

This patch has most of the contents of: https://codereview.chromium.org/10914247 except that it doesn't change any of the field trial probabilities.
It fixes the following tests: Canvas2DDisabled, Canvas2DBlocked, WebGLBLocked, WebGLDisabled, AcceleratedCompositingDisabled,
AcceleratedCompositingBlocked . 

It also disables ExtensionApiTest.CaptureVisibleTabJPeg as it triggers flakiness on it. chrome.tabs.captureVisibleTab is inherently racy as there is no way to guarantee that the tab has been painted at least once when that call is made. Note how the other variants of CaptureVisibleTab tests have already been disabled for similar reasons. (this was done with aa@'s advice)

BUG=155336


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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@161733 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Don't allow shortcuts to be added to the start screen for apps or sites.

For apps, these don't work. For sites, pinning secondary tiles should be used instead.

BUG=126196


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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@161738 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Add systemInfo.cpu.onUpdated event implementation (re-committed it again since the static initializer regression issue was resolved. See http://code.google.com/p/chromium/issues/detail?id=155472)

BUG=136519
TEST=browser_tests --gtest_filter=SystemInfoCpuApiTest.*

Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=161499

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@161742 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
NTP5: Temporary fix for the NTP's boucing problem. See related bug reports crbug.com/154146 and crbug.com/148728.

Fixing this bug completely will require more work, in coordination with @dhollowa, but considering the annoyance of this bug we've decided to submit a temporary fix first, while we investigate how to solve the real source of the bug (which is extra resize messages being sent to the web view).

The temporary solution presented in this CL is ignoring the first resize events up to 95 milliseconds after the page has been loaded (or restored after being hidden). This is a very ugly solution, and is just being presented now because the bug is very annoying (the NTP bounces a few times each time you open or switch to a NTP) and the complete solution will take a few more days to be implemented.

BUG=148728

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@161743 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Make show_dialog_callback optional in ExtensionInstallPrompt

The code is more complex than it has to be. Making show_dialog_callback optional should make it easier to understand.

BUG=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@161744 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Include sstream instead of iostream to avoid the additional IO static
initializer.

BUG=155472
TEST=None


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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@161756 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Fix for out-of-sync scale factor issue
- Set active root window early when creating browsers on startup.
- Send screen info when device scale factor chagned.
- gfx::Screen::GetDisplayNearestWindow should return Primary when the window's root doesn't exist. I missed this condition in  https://chromiumcodereview.appspot.com/10961021

BUG=155201, 152728
TEST=manual: see bug for repro steps

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@161758 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Correct padding and focus ring for frameless constrained window dialog: http://i.imgur.com/IQbR9.png

BUG=154325



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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@161772 4ff67af0-8c30-449e-8e8b-ad334ec8d88c