diff options
author | mark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-19 22:58:58 +0000 |
---|---|---|
committer | mark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-19 22:58:58 +0000 |
commit | b11953f046bbe1637041981df4a434cb96b8df30 (patch) | |
tree | 765d8337bb16b4f023006c1b2f88edb1097671db /chrome/browser/platform_util.h | |
parent | 7be87f35e7b4ebbb92c298f998008be6ac33ecc2 (diff) | |
download | chromium_src-b11953f046bbe1637041981df4a434cb96b8df30.zip chromium_src-b11953f046bbe1637041981df4a434cb96b8df30.tar.gz chromium_src-b11953f046bbe1637041981df4a434cb96b8df30.tar.bz2 |
Mac Canary: Don't offer to set as the default browser.
This includes some light refactoring to give all platforms a
platform_util::CanSetAsDefaultBrowser() function. The .xib change links the
set-as-default button with the new IBOutlet.
BUG=79814
TEST=Canary.app should never offer to set as the default browser in the
first run dialog or in an infobar.
Review URL: http://codereview.chromium.org/6881058
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82179 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/platform_util.h')
-rw-r--r-- | chrome/browser/platform_util.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/chrome/browser/platform_util.h b/chrome/browser/platform_util.h index 37d5171..41fa0ed 100644 --- a/chrome/browser/platform_util.h +++ b/chrome/browser/platform_util.h @@ -1,4 +1,4 @@ -// Copyright (c) 2009 The Chromium Authors. All rights reserved. +// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -60,6 +60,9 @@ bool SimpleYesNoBox(gfx::NativeWindow parent, // beta, but "" for stable). std::string GetVersionStringModifier(); +// Returns true if the running browser can be set as the default browser. +bool CanSetAsDefaultBrowser(); + } #endif // CHROME_BROWSER_PLATFORM_UTIL_H_ |