views: Fix crash in NativeMenuWin::AddMenuItemAt().

BUG=233243
R=msw@chromium.org
TBR=ben@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195033 0039d316-1c4b-4281-b951-d872f2087c98
Make PowerStatusView::GetRoundedBatteryPercentage() round.

PowerStatusView::GetRoundedBatteryPercentage() truncated
rather than rounding, resulting in Chrome frequently
displaying a slightly-lower battery percentage than what
powerd told it to display.

BUG=chromium:221746

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195034 0039d316-1c4b-4281-b951-d872f2087c98
Remove a few un-necessary string copies in net/

BUG=233164
R=pliard@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195035 0039d316-1c4b-4281-b951-d872f2087c98
[chromedriver] Fix nested frame issue for command getElementLocationOnceScrolledIntoView.

Also enable two passed java tests.

BUG=
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195036 0039d316-1c4b-4281-b951-d872f2087c98
QUIC - fix memory leak.

R=rch@chromium.org
BUG=232777

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195037 0039d316-1c4b-4281-b951-d872f2087c98
views: Remove SetHighlightColor usages.

This seems to be equivalent to SetHoverColor and LabelButton doesn't have/implement
this concept. So to make the life easier just remove it.

BUG=155363
R=msw@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195038 0039d316-1c4b-4281-b951-d872f2087c98
Eliminating recordEvent call with string parameter. This was a merge error.

BUG=164227
TEST=No

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195039 0039d316-1c4b-4281-b951-d872f2087c98
Implement Enterprise Key API.

Proposal: https://docs.google.com/a/google.com/document/d/1KxtQCk4SJdAZId8WxtnCxR3kS2KvhFDsU0SdAeP18Xc/edit

The logic of the API is implemented. Add prefernces and policies are added.
The underlying cryptohome_client will be implemented in another CL.

BUG=chromium:219963
TEST=unit_tests

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195043 0039d316-1c4b-4281-b951-d872f2087c98
Clobbering android bots to fix test issue

BUG=
TBR=cjhopman@chromium.org
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195044 0039d316-1c4b-4281-b951-d872f2087c98
Fix overflow in history expiry code in 64 bit builds.

ArchiveSomeOldHistory() takes an int as last parameter, but this code would
pass numeric_limits<size_t>::max(). Found by clang building in C++11 mode:

../../chrome/browser/history/expire_history_backend.cc:330:25: error: implicit conversion from 'unsigned long' to 'int' changes value from 18446744073709551615 to -1 [-Werror,-Wconstant-conversion]
                        std::numeric_limits<size_t>::max());
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

BUG=233330

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195056 0039d316-1c4b-4281-b951-d872f2087c98
Fix Clang errors in the Windows screen capture code

"and" and "xor" are alternate spellings of the "&&" and "^" operators,
and clang doesn't like it if you use them as identifiers.

Clang also doesn't like static_cast<> from void * to a function pointer,
but reinterpret_cast<> works.

R=alexeypa@chromium.org
BUG=82385

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195057 0039d316-1c4b-4281-b951-d872f2087c98
Fixes webrtc-internals stats reporting for the new stats API.

BUG=230997

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195058 0039d316-1c4b-4281-b951-d872f2087c98
Tab audio indicator: Use animation container on Mac

When showning an audio indicator on multiple tabs, the CPU usage on
my machine is:
  1 tab: 1.5%
  2 tab: 2.5%
  3 tab: 3.2%

This CL uses a common animation container for all tabs in a window.
This changes the CPU usage to:
  1 tab: 1.5%
  2 tab: 1.5%
  3 tab: 1.5%

BUG=3541

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195059 0039d316-1c4b-4281-b951-d872f2087c98
Don't set backup SafeBrowsing urls when kSbURLPrefix is specified.

BUG=233039

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195060 0039d316-1c4b-4281-b951-d872f2087c98
Remove landing page from history when redirecting to NTP so that the back-button will work as expected.

BUG=180145

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195061 0039d316-1c4b-4281-b951-d872f2087c98
drive: Fix a bug that broke "Delta Update Status" in chrome:drive-internals

$('polling-interval-sec') no longer exists hence causes a JS error.
FWIW, the regression was introduced in crrev.com/194294

BUG=233446
TEST=open chrome:drive-internals; confirm that Delta Update Status section is shown properly.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195062 0039d316-1c4b-4281-b951-d872f2087c98
Change first run strings from "omnibox data" -> "history"

Changes the string and breaks it apart for the Android UI.

BUG=180962

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195063 0039d316-1c4b-4281-b951-d872f2087c98
SIGSEGV in content::RenderWidgetHostViewAura::ApplyEventFilterForPopupExit()

The cause is very likely that an event-handler is destroyed inside the
event-handling function (OnMouseEvent). Furthermore, this destruction
is not needed due to state variable "in_shutdown_". It was there for a 
very marginal efficiency gain. Removed the handler destruction.

BUG=230872
R=ben@chromium.org
TEST=manual

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195064 0039d316-1c4b-4281-b951-d872f2087c98
Disabling Autocheckout on non-Views builds.

BUG=229710

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195065 0039d316-1c4b-4281-b951-d872f2087c98
Remove inline definition of SIZE_MAX in header.

suid_unsafe_environment_variables.h is included both in C and C++ and is
a little clunky. Clean things up a bit.

BUG=233330

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

Patch from Julien Tinnes <jln@chromium.org>.

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