Disable flaky ScreenLockerTest.TestEscape.

BUG=137488
TEST=ScreenLockerTest.*
TBR=flackr

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@147233 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Turn on fragments for prerender.

R=dominich@chromium.org
BUG=118224
TEST=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@147235 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
gdata: Remove use of GetGDataEntryByPath() from RequestDirectoryRefreshOnUIThread()

The number of calles of GetGDataEntryByPath() is reduced from 20 to 19

BUG=137694
TEST=out/Release/unit_tests --gtest_filter=GData*

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@147237 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Coverity: Fix a constant expression.

"status &= 0 /* !4 */ always assigns 0 to status. Did you intend to use '~'
rather than '!'?" -- Yes, we did.  Thanks.

CID_COUNT=1
CID=104458
BUG=none
TEST=none
R=miket

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@147241 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Refactored code for timezone settings. Moved ui specific stuff to webui/options2.
Ensure that only known timezones are stored in TimezoneSettings.

BUG=chromium-os:27206
TEST=Set symlink /var/lib/timezone/localtime to an unknown timezone
(i.e. not in |kTimeZones|) but with the same rules as a known
timezone. The settings UI must show one of these equivalent
timezones.

Change the timezone in the settings and observe both the clock and the symlink being updated.

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@147242 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Re-add file list filters.
Review URL: https://chromiumcodereview.appspot.com/10781037

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@147244 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
* Use Virtual Screen Coordinates in more places
 - When setting widget bounds.
 - Workspace Manager
 - When resizing
 - Restore bounds
* Refactored ScreenPositionClient to manage Screen coordinates for different configurations.
* Renamed GetBounds/SetBounds methods to GetScreen/ParentBounds to make it clear that in which coordinates you're dealing with.
* I used InScreen/InParent for RestoreBounds because RestoreParent/ScreenBounds sounds strange.

Converted Linux/Aura to use ScreenPositionClient.

BUG=123160
TEST=several tests are updated to match VSC. added screen_ash_unittests. I'll update rest of tests when this is enable by default.

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@147250 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
gdata: Fix "Uninteresting mock function call" from GDataFileSystemTest

Along the way, change the code to use StrictMock<> for all mock objects.

BUG=none
TEST=out/Release/unit_tests --gtest_filter=GDataFileSystemTest.*

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@147251 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
gdata: Remove AsGDataRootDirectory()

This is in preparation of removing GDataRootDirectory.

BUG=135312
TEST=out/Release/unit_tests --gtest_filter=GData*

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

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

Originaly, GDataRootDirectory was introduced as a place to hold some
extra metadata like the largest changestamp etc. but we no longer
need GDataRootDirectory, as we now have a container called
GDataDirectoryService.

We'll remove GDataRootDirectoryProto once the migration to the new
metadata storage is complete.

BUG=135312
TEST=out/Release/unit_tests --gtest_filter=GData*; also confirmed that the existing proto was loaded properly

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@147260 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Part 3 of Move SelectFileDialog implementation to ui/base/dialogs/

- Actually move the SelectFileDialog class to ui::, leaving a compatibility header in the interim.
- Because of linking reasons, create a factory interface for the SelectFileDialogExtension to use to inject itself from chrome/browser/views/ui/
- Because of linking reasons, move SelectFileDialogWin in this patch.
- wstring code moved to win only files.

BUG=134529
TEST=none
First Review URL: https://chromiumcodereview.appspot.com/10695066

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@147263 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Remove browser::FindOrCreateTabbedBrowser usage in extensions browser test code.

I also made ExtensionProcessManager::OpenOptionsPage always take a Browser, so that we can get the context from it for the new window (in a future change).

BUG=129187
Review URL: https://chromiumcodereview.appspot.com/10704239

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@147264 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Wired support for file truncating and opening in R/W mode to  RemoteFileSystemOperation::OpenFile() method.

BUG=133879
TEST=coming...

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@147266 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Removing usage of profile_->GetHistory() from the codebase in order to remove that function.

This was previously reverted, found not to be the cause of the issue, now I am reinstating the changes.

BUG=97804
TEST=existing unittests 

TBR=sky@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@147267 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Change the FindHistogram interface of StatisticsRecorder

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@147269 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Always enable dom automation for browser_tests. This avoids developers having to call EnableDOMAutomation manually, which is not evident. ui_tests used to do this automatically.

Also while at it, removed needless InProcessBrowserTest::SetUpCommandLine() calls.
Review URL: https://chromiumcodereview.appspot.com/10778044

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@147272 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Add dummy DeletePlatformShortcuts() for Android.

This is part of the unit_tests linking effort on Android.

BUG=136787


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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@147276 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Add a method to create ExtensionInstallPrompt from WebContents.

 - This allows us to provide a platform specific ExtensionInstallPrompt.
 - Moves some Browser referencens into a specific implementation.

BUG=117407

TEST=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@147277 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Persists shelf alignment to prefs.

BUG=132174
TEST=see bug
R=xiyuan@chromium.org


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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@147278 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
UMA for sync time-to-magic / download times.

BUG=128751
TEST=The first time a profile is sync'ed, should see a histogram value
called Sync.ServiceFirstTimeConfigureTime.  All other times chrome is
started should see a histogram value called Sync.ServiceConfigureTime.
Histogram values can be seen at about:histograms


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

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