Merge 221300 "Fixing spreadsheets printing."

> Fixing spreadsheets printing.
> Some plugins needs to have document loaded to decide if printing is supported. This patch makes scripted print preview for plugins to wait DidStopLoading().
> 
> BUG=268778
> R=cevans@chromium.org, thestig@chromium.org
> 
> Review URL: https://codereview.chromium.org/23855002

TBR=vitalybuka@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/branches/1599/src@222274 0039d316-1c4b-4281-b951-d872f2087c98
Merge 218648 "Null ModelSafeWorker's working_loop_ if loop is de..."

> Null ModelSafeWorker's working_loop_ if loop is destructed and synchronize access to workiing_loop_. Otherwise ModelSafeWorker could try to unregister for dead loop.
> 
> BUG=274729
> 
> Review URL: https://chromiumcodereview.appspot.com/22985008

TBR=haitaol@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/branches/1599/src@222281 0039d316-1c4b-4281-b951-d872f2087c98
Merge 221247 "cc: Adopt new skia object when it's created to avo..."

> cc: Adopt new skia object when it's created to avoid memory leak.
> 
> Skia ref-counted objects must always be adopted at creation time
> in order to prevent memory leaks. The SoftwareRenderer was creating
> an SkDrawFilter and passing it to the SkCanvas without adopting it
> first, and this was leaking the filter.
> 
> R=aelias
> BUG=285161
> 
> Review URL: https://chromiumcodereview.appspot.com/23619012

TBR=danakj@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/branches/1599/src@222286 0039d316-1c4b-4281-b951-d872f2087c98
Merge 221221 "Fix Views Combobox and TreeView input minimally."

> Fix Views Combobox and TreeView input minimally.
> 
> Fixes r216992's regression (input not sent to Combobox/TreeView).
> Call views::InputMethod::On[Focus|Blur] for Combobox and TreeView.
> This correctly forwards input method input to the focused views.
> (this minimal CL should be mergeable to fix this issue in M-30)
> 
> I had landed a fix that was more complex: http://crrev.com/219673
> That caused regressions and was reverted: http://crrev.com/220121
> Both CLs should be superceded by: http://crrev.com/23583013
> (but that CL is a complex WIP proof of concept, not mergeable)
> 
> BUG=276720
> TEST=Test Win (desktop, Win8 Metro, and Aura builds), CrOS, and Linux Aura's Omnibox, Find Bar, Bookmark Bubble, and Edit Bookmark Dialog's textfield text entry (and text input handling to select combobox and tree view elements) with EN, JA, and other IMEs, and related IME usage (Win+Space to change IME on Win8, Alt+` to change modes, etc.). Also test with --enable-text-services-framework.
> R=sky@chromium.org
> 
> Review URL: https://chromiumcodereview.appspot.com/23882003

TBR=msw@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/branches/1599/src@222292 0039d316-1c4b-4281-b951-d872f2087c98
[Android WebView] Fix a broken merge done in r221481

> [Android WebView] Wire up Blink's UseLegacyBackgroundSizeShorthandBehavior setting
> 
> R=benm@chromium.org
> BUG=277157
> TEST=AwSettingsTest#testUseLegacyBackgroundSizeShorthandBehavior
> 
> Review URL: https://chromiumcodereview.appspot.com/23483005

The merge was lacking a change in webkit/renderer/webpreferences_renderer.cc
because the file has been renamed upstream.

TBR=mnaganov@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/branches/1599/src@222324 0039d316-1c4b-4281-b951-d872f2087c98
Merge 221147 "Whitelist some Google apps for oauth2.auto_approve"

> Whitelist some Google apps for oauth2.auto_approve
> 
> BUG=281587
> 
> Review URL: https://chromiumcodereview.appspot.com/23499005

TBR=rockot@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/branches/1599/src@222327 0039d316-1c4b-4281-b951-d872f2087c98
Merge 221853 "Send Android accessibility "content changed" event..."

> Send Android accessibility "content changed" event for any change.
> 
> Specifically, AccessibilityEvent.TYPE_WINDOW_CONTENT_CHANGED should
> be fired on the appropriate node any time the accessibility tree changes
> - previously we were only firing it in a few circumstances. That guarantees
> tools like uiautomatorviewer won't see a stale accessibility tree.
> 
> BUG=286374
> 
> Review URL: https://chromiumcodereview.appspot.com/23481011

TBR=dmazzoni@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/branches/1599/src@222328 0039d316-1c4b-4281-b951-d872f2087c98
Merge 220970 "Prevent hanging client by making WebContentsDelega..."

> Prevent hanging client by making WebContentsDelegate::RequestMediaAccessPermission reject request by default.
> 
> When clients of WebContentDelegate calls RequestMediaAccessPermission, they expect a callback.
> Some derived classes of WebContentDelegate don't override RequestMediaAccessPermission, which results in client hanging forever.
> By making WebContentsDelegate::RequestMediaAccessPermission reject request by default, the client will always get callback.
> The subclasses of WebContentDelegate can override the behavior when needed.
> 
> BUG=282591
> R=joi@chromium.org
> 
> Review URL: https://codereview.chromium.org/23532021

TBR=wjia@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/branches/1599/src@222331 0039d316-1c4b-4281-b951-d872f2087c98
Merge 217954 "Update manifest for latest speech synthesis code."

> Update manifest for latest speech synthesis code.
> 
> This is part of the speech synthesis change that makes it timeout
> after 30 seconds of inactivity.
> 
> BUG=255669
> NOTRY=true
> 
> Review URL: https://chromiumcodereview.appspot.com/22935007

TBR=dmazzoni@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/branches/1599/src@222337 0039d316-1c4b-4281-b951-d872f2087c98
Merge 221355 "Show the mixed content shield UI even for HSTS hosts."

> Show the mixed content shield UI even for HSTS hosts.
> 
> The user deserves a chance to override. Now that we've made the UI subtle,
> it's not like users are going to hit the button by accident.
> 
> BUG=285376
> R=thestig@chromium.org, tsepez@chromium.org
> 
> Review URL: https://codereview.chromium.org/23971005

TBR=cevans@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/branches/1599/src@222347 0039d316-1c4b-4281-b951-d872f2087c98
Merge 218092 "<webview>: Fix ptr access crash on browser plugin ..."

> <webview>: Fix ptr access crash on browser plugin + interstitial teardown.
> 
> If browser plugin loaded an interstitial page as view contents
> (e.g. loading plugin resulted in ssl-error), upon closing the
> containing app, the interstitial would try to show back
> (RenderWidgetHostView::WasShown) the original contents of the
> RWHViewGuest, whose render_view_host_ was already in the middle of
> destruction. We record the destruction phase and avoid calling methods
> on RenderViewHost in this case.
> 
> BUG=270313
> TEST=chrome app <webview>, load a guest pointing a page that results in
> ssl-error page showing (Proceed to safety page, etc), close the app. The app
> would crash without this change.
> Added regression test.
> 
> Review URL: https://chromiumcodereview.appspot.com/23004002

TBR=lazyboy@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/branches/1599/src@222348 0039d316-1c4b-4281-b951-d872f2087c98
Merge 221892 "Fix threading issues in aw form database"

> Fix threading issues in aw form database
> 
> BUG=285584
> 
> Review URL: https://chromiumcodereview.appspot.com/23803005

TBR=sgurun@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/branches/1599/src@222351 0039d316-1c4b-4281-b951-d872f2087c98
Merge 220969 "Touch selection: Hide selection handles when overs..."

> Touch selection: Hide selection handles when overscroll is in progress and show
> them only after the overscroll animation is complete.
> Tests are in separate patch so that merging this patch into the branch is easy.
> Patch with test: crrev.com/23620016
> 
> BUG=263368
> R=sky@chromium.org
> 
> Review URL: https://codereview.chromium.org/23852003

TBR=varunjain@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/branches/1599/src@222352 0039d316-1c4b-4281-b951-d872f2087c98
Incrementing VERSION to 30.0.1599.37

git-svn-id: svn://svn.chromium.org/chrome/branches/1599/src@222353 0039d316-1c4b-4281-b951-d872f2087c98
Merge 222117 "Avoid dereferencing a NULL DeviceState in NetworkI..."

> Avoid dereferencing a NULL DeviceState in NetworkIconImpl::GetBadges().
> 
> BUG=276900
> 
> Review URL: https://chromiumcodereview.appspot.com/23484018

TBR=benchan@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/branches/1599/src@222354 0039d316-1c4b-4281-b951-d872f2087c98
Merge 222133 "Fix the wrong output device switching caused by an..."

> Fix the wrong output device switching caused by an input device being plugged in.
> 
> BUG=286029
> 
> Review URL: https://chromiumcodereview.appspot.com/23819034

TBR=jennyz@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/branches/1599/src@222363 0039d316-1c4b-4281-b951-d872f2087c98
Merge 221858 "capture a top java exception on certain Samsung de..."

> capture a top java exception on certain Samsung devices
> 
> This is one of the top crasher on some samsung devices
> https://crash.corp.google.com/search?query=android.media.MediaCodec.flush
> Capture some exceptions while we are trying to look into the problem
> 
> BUG=278464
> 
> Review URL: https://chromiumcodereview.appspot.com/23321004

TBR=qinmin@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/branches/1599/src@222384 0039d316-1c4b-4281-b951-d872f2087c98
Incrementing VERSION to 30.0.1599.38

git-svn-id: svn://svn.chromium.org/chrome/branches/1599/src@222409 0039d316-1c4b-4281-b951-d872f2087c98
Merge r221557: [Android WebView] Wire up the viewport quirks settings

> [Android WebView] Wire up the viewport quirks settings
>
> Wires up Blink WebSettings introduced in
> https://codereview.chromium.org/22909031 and then updated in
> https://codereview.chromium.org/23691017
>
> These quirks are to maintain compatibility with Android apps built on
> the Android SDK prior to and including version 18. Presumably, this
> can be removed any time after 2015.
>
> BUG=277369, 282130
> Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=221557

BUG=277369, 282130
TBR=mnaganov@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/branches/1599/src@222454 0039d316-1c4b-4281-b951-d872f2087c98
Merge 221482 "Fix problem with input fields not gaining focus"

> Fix problem with input fields not gaining focus
> 
> Brings the onFocusChanged handling exactly inline between ContentView and
> AwContents.
> 
> NOTRY=true
> BUG=285582
> 
> Review URL: https://chromiumcodereview.appspot.com/23623020

TBR=joth@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/branches/1599/src@222479 0039d316-1c4b-4281-b951-d872f2087c98