[osx] Fix UncheckedMalloc() again.

r242238 attempted to expand the CrMallocErrorBreak() support for
UncheckedMalloc() to handle 10.9.  Unfortunately, the ordering of the
condition means that it actually broke things for all versions of OSX.

BUG=243949
TBR=mark@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@242508 0039d316-1c4b-4281-b951-d872f2087c98
Revert 241505 "Fix preloading images when copying."

> Fix preloading images when copying.
> 
> The previous fix incorrectly was passing an entry, however the ThumbnailLoader does not work on entries yet.
> This patch fixes this issue by passing an url instead of the entry.
> 
> TEST=Tested manually.
> BUG=328238
> 
> Review URL: https://codereview.chromium.org/117803005

TBR=mtomasz@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@242509 0039d316-1c4b-4281-b951-d872f2087c98
bookmarks: Eliminate an unnecessary AsMutable() call.

GetChild() can return a non-const pointer and in this specific situation
inside RemoveAll(), that is more appropriate, and thus we can remove an
unnecessary AsMutable() call.

BUG=330331
R=brettw@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@242510 0039d316-1c4b-4281-b951-d872f2087c98
This CL refactors ToplevelWindowEventHandler and TwoFingerDragHandler to make merging the two easier.

Notable changes:
- Fixed weirdness due to initiating tab dragging while a different drag is in progress.
- Makes it no longer possible to alter the window's show type via a fling while resizing (vs moving) the window.
- Moved all of the code to set the state when beginning / completing a drag to ToplevelWindowEventHandler::AttemptToStartDrag() and
ToplevelWindowEventHandler::CompleteDrag()
- Removed unneeded code to animate to the side snapped states
- Made the instances where ToplevelWindowEventHandler::OnGestureEvent() stops propagation more obvious

BUG=324038
TEST=ToplevelWindowEventHandlerTest.RunMoveLoopRevertsInProgressDrag

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@242511 0039d316-1c4b-4281-b951-d872f2087c98
Blink roll 164334:164335

http://build.chromium.org/f/chromium/perf/dashboard/ui/changelog_blink.html?url=/trunk&range=164335:164335&mode=html
TBR=
BUG=

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

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@242513 0039d316-1c4b-4281-b951-d872f2087c98
Files.app: Introduce ProgressCenterItemElement class.


Currently the state of item elements of the progress center is managed by the
ProgressCenter class.  But it is getting more complex, so this CL introduces
ProgressCenterItemElement class to manage the state.

BUG=330641
TEST=manually

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@242514 0039d316-1c4b-4281-b951-d872f2087c98
Rename BookmarkModelObserver::Loaded() method to BookmarkModelLoaded().

Every other method in BookmarkModelObserver starts with either
BookmarkModel if it is related to BookmarkModel or or BookmarkNode if it
is related to BookmarkNodes.

To be consistent Loaded() should start with BookmarkModel since it is
saying the model has been loaded.

BUG=330428
TEST=None, no functional changes.
R=brettw@chromium.org
TBR=ben

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@242515 0039d316-1c4b-4281-b951-d872f2087c98
Clean-up: Removed an unused forward declaration in text_elider.h.

Let me TBR because this change is so trivial.

TBR=asvitkine@chromium.org
TEST=none

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@242516 0039d316-1c4b-4281-b951-d872f2087c98
Bug fix: Translate New UX: Stop consuming an Enter/Space key event when the combobox's style is not STYLE_NOTIFY_ON_CLICK.

BUG=329995
TEST=views_unittests --gtest_filter=ComboboxTest.*

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@242517 0039d316-1c4b-4281-b951-d872f2087c98
Clean-up: Replaces gfx::Font with gfx::FontList in ui/app_list.

As a part of effort to support multiple fonts, this CL changes methods to take gfx::FontList instead of gfx::Font, and to use new methods.

See https://docs.google.com/a/chromium.org/document/d/1D_25fp9B8b9aZJORfAjDIFq61NWvUquZ5xmKH-VcC4k/view

BUG=265485
TEST=Run views_unittests, ui_unittests and unit_tests.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@242518 0039d316-1c4b-4281-b951-d872f2087c98
Remove UTF string conversion functions from the global namespace.

BUG=330556
TEST=no change
TBR=ben@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@242519 0039d316-1c4b-4281-b951-d872f2087c98
Clean-up: Fixes the wrong indentation in bounded_label.cc.

Let me TBR because the fix is very trivial.

TBR=stevenjb@chromium.org
TEST=none

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@242520 0039d316-1c4b-4281-b951-d872f2087c98
Suppress the races in base::Histogram::Add and base::HistogramSamples::Add
until https://codereview.chromium.org/116983004/ is landed.

BUG=46840
TBR=jar@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@242521 0039d316-1c4b-4281-b951-d872f2087c98
Limit using fullPath and URL for transfering files in the Files app.

This CL is the initial step in removing relying on paths and URLs in file_operation_manager.js and in file_transfer_controller.js files.

TEST=Tested manually copying and moving between Downloads, Drive, inside a volume. Tested creating a ZIP archive. Also, partly covered by browser_tests.
BUG=329435

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@242522 0039d316-1c4b-4281-b951-d872f2087c98
Implement file locking in CdmFileIOImpl.

A CdmFileIOImpl object must aquire a lock before it can open a file. This
prevents mutiple objects from reading/writing the same file at the same time.
The lock is released when the open failed, or when the CdmFileIOImpl object is
Close()'ed.

Implementation detail: Since CdmFileIOImpl object totally lives on the main
thread. We don't need any real mutex/lock. Having a global lock map shared by
all CdmFileIOImple objects is sufficient.

BUG=324134
TEST=Updated ReopenFileInSeparateFileIO test passes. Also ReadExistingFile test
covers the scenario where the lock is released when a CdmFileIOImpl is
Close()'ed.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@242523 0039d316-1c4b-4281-b951-d872f2087c98
Fix download_build_install.py to use instrumented libraries as library dependencies.

BUG=313751
R=alextaran@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@242524 0039d316-1c4b-4281-b951-d872f2087c98
Blink roll 164335:164336

http://build.chromium.org/f/chromium/perf/dashboard/ui/changelog_blink.html?url=/trunk&range=164336:164336&mode=html
TBR=
BUG=

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

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@242526 0039d316-1c4b-4281-b951-d872f2087c98
Add libdbus and libdbus-glib to the lists of instrumented libraries.

BUG=313751
R=glider@chromium.org

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

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