Move mac_bundle_id and other variables from chrome.gyp to build/chrome_settings.gypi.

These variables could be used from any gypi file included from chrome.gyp.
However, policy_templates.gypi is moving into components/policy.gypi, which
is included from components/components.gyp instead.

Moving the variables to build/chrome_settings.gypi enables their use from other gyp files.

BUG=271392

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@240367 0039d316-1c4b-4281-b951-d872f2087c98
Gets the various Window::StackChild functions to work with WINDOW_LAYER_NONE. Specifically when the type is WINDOW_LAYER_NONE layer reordering becomes more complicated. For example, consider the following window tree:

a-n
  a1
b
c-n
  c1

-n means no-layer. So, the layer tree is (all have the same parent in this example):
a1
b
c1

stacking a above c results in the following window stacking order:
b
c-n
  c1
a-n
  a1

And layer ordering:
b
c1
a1

BUG=none
TEST=covered by tests
R=ben@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@240368 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 240367
Cleanup: Remove extra loops. There's no need to prioritize items in the
update check, since all items fit in the update check.

BUG=

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@240369 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 240369
Replace obsolete GetDefaultProfile with GetActiveUserProfile

BUG=322682

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@240370 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 240370