summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/browser_init.cc
Commit message (Collapse)AuthorAgeFilesLines
* Converted IncognitoForced boolean policy into IncognitoModeAvailability enum ↵rustema@google.com2011-08-051-8/+15
| | | | | | | | | | | | | | | | | | | | policy. Enum may take 3 values: * ENABLED (default) - both normal and incognito modes are allowed. * DISABLED - incognito mode cannot be used. * FORCED - browsing is only possible in incognito mode. Mapped IncognitoEnabled::false to IncognitoModeAvailability::DISABLED when IncognitoModeAvailability policy/pref is not set. Removed IncognitoEnabled pref (no longer used). BUG=69580 TEST= Review URL: http://codereview.chromium.org/7520023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@95580 0039d316-1c4b-4281-b951-d872f2087c98
* Profile shouldn't own CloudPrintProxyService.torne@chromium.org2011-08-021-1/+3
| | | | | | | | | | | | | CloudPrintProxyService is now owned by CloudPrintProxyServiceFactory, using Profile as a key. This uses the ProfileKeyedService infrastructure originally created for ThemeServiceFactory. BUG=77155 TEST=existing tests Review URL: http://codereview.chromium.org/6792047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@95078 0039d316-1c4b-4281-b951-d872f2087c98
* Removal of Profile from content part 4.avi@chromium.org2011-08-011-2/+2
| | | | | | | | | BUG=76788 TEST=no change visible Review URL: http://codereview.chromium.org/7531004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@94901 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools: move devtools_ui into content since it should be able to serve ↵pfeldman@chromium.org2011-07-271-0/+1
| | | | | | | | | | | devtools files. BUG=84078 TEST= Review URL: http://codereview.chromium.org/7453021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@94290 0039d316-1c4b-4281-b951-d872f2087c98
* Remove explicit keyword from multi-argument (w/o default values) constructorsdilmah@chromium.org2011-07-261-3/+3
| | | | | | | | | BUG=None TEST=None Review URL: http://codereview.chromium.org/7477008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@94115 0039d316-1c4b-4281-b951-d872f2087c98
* Incognito mode forced.rustema@google.com2011-07-261-2/+4
| | | | | | | | | | | | | Clear local cache on exit BUG=69580 TEST=configuration_policy_pref_store_unittest.cc Review URL: http://codereview.chromium.org/7399021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@94024 0039d316-1c4b-4281-b951-d872f2087c98
* touch: Always expect XInput2 availability.sadrul@chromium.org2011-07-221-2/+2
| | | | | | | | | BUG=80790 TEST=touch compiles Review URL: http://codereview.chromium.org/6975045 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93621 0039d316-1c4b-4281-b951-d872f2087c98
* Take two at splitting result codes between content and chrome.dpranke@chromium.org2011-07-191-2/+2
| | | | | | | | | | | | content/common/result_codes.h contains only the codes defined in content. chrome/common/chrome_result_codes.h contains the codes defined in chrome and also includes (for convenience) the content header. R=jam@chromium.org BUG=76699 TEST=everything compiles Review URL: http://codereview.chromium.org/7397004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93082 0039d316-1c4b-4281-b951-d872f2087c98
* Revert r92730, r92731, r92732 ... will land again once I ensure the win ↵dpranke@chromium.org2011-07-151-2/+2
| | | | | | | | | | | | | builds compile. TBR=jam@chromium.org BUG=none TEST= Review URL: http://codereview.chromium.org/7400002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92733 0039d316-1c4b-4281-b951-d872f2087c98
* This change will split the result codes between content and chrome.dpranke@chromium.org2011-07-151-2/+2
| | | | | | | | | | | | | | | This adds a new file into chrome/common and does a lot of renaming. The current version is just a sketch of the headers, and nothing will compile. R=jam@chromium.org BUG=76699 TEST=everything still compiles and runs Review URL: http://codereview.chromium.org/7377010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92730 0039d316-1c4b-4281-b951-d872f2087c98
* Moved CanSetAsDefault* from platform_util to shell_integrationbenwells@chromium.org2011-07-151-2/+1
| | | | | | | | | | | | | | Moved the CanSetAsDefaultBrowser / ProtocolClient functions next to the routines which do the setting of Chrome to be the default browser and client. BUG=88196 TEST=Manual testing performed Review URL: http://codereview.chromium.org/7334003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92659 0039d316-1c4b-4281-b951-d872f2087c98
* Rename CommandLine::GetArgs(), update callers.msw@chromium.org2011-07-131-1/+1
| | | | | | | | | BUG=73195 TEST=none Review URL: http://codereview.chromium.org/7352006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92448 0039d316-1c4b-4281-b951-d872f2087c98
* Resource cleanup and de-dupingestade@chromium.org2011-07-121-1/+1
| | | | | | | | | | | | | | | | | | | | - remove duplicate code between most_visited_handler.cc and top_sites.cc - remove dead code in most_visited_handler.cc - remove duplicate favicon resources - update favicon resources by adding 32x32s resource for NTP stock most visited pages - uniformly refer to PRODUCT_NAME rather than sometimes using "google chrome" in chromium builds on the NTP - consolidate some resources (IDR_CHROME_STORE_PAGE_FAVICON and IDR_WESBTORE_ICON_16 for example) - remove unused thumbnail for webstore (which is slightly distinct from the themes gallery because there's no &category=theme in the URL) as a precursor, I had to add an icon to chrome/app/theme/google_chrome (internal repository) as a cleanup after, I will have to remove an icon from the same BUG=none TEST=trybots; manual Review URL: http://codereview.chromium.org/7342001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92249 0039d316-1c4b-4281-b951-d872f2087c98
* Re-land r89864. Hopefully this won't trigger the apparent perf regression ↵abarth@chromium.org2011-07-081-1/+1
| | | | | | now that we've tweaked things. If it does, I'll continue to investigate. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91811 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 89864 - Don't rely on user gestures for deciding when to dismiss ↵cmp@chromium.org2011-07-071-1/+1
| | | | | | | | | | | | | | | | | | | | infobars. Previously, we looked at the user gesture state when deciding whether to dismiss infobars. Now that WebKit's user gesture state doesn't lie, we can tell that this behavior is incorrect. Page-specific infobars, like translate, should close whenever the main frame navigates to a new page, regardless of whether that navigation was conducted from a user gesture. BUG=86417 Review URL: http://codereview.chromium.org/7205026 TBR=abarth@chromium.org Review URL: http://codereview.chromium.org/7324001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91744 0039d316-1c4b-4281-b951-d872f2087c98
* Changes session restore to restore to existing browser and only closesky@chromium.org2011-07-071-7/+22
| | | | | | | | | | | | | | | active tab if it's the new tab page. This is necessary to properly persist startup tabs, or other tabs the user may have created before hitting the restore button. I also tweaked the public API to take a bitmask instead of a bunch of bools. BUG=27005 TEST=see bug R=brettw@chromium.org Review URL: http://codereview.chromium.org/7307023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91661 0039d316-1c4b-4281-b951-d872f2087c98
* Don't rely on user gestures for deciding when to dismiss infobars.abarth@chromium.org2011-06-211-1/+1
| | | | | | | | | | | | | | Previously, we looked at the user gesture state when deciding whether to dismiss infobars. Now that WebKit's user gesture state doesn't lie, we can tell that this behavior is incorrect. Page-specific infobars, like translate, should close whenever the main frame navigates to a new page, regardless of whether that navigation was conducted from a user gesture. BUG=86417 Review URL: http://codereview.chromium.org/7205026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89864 0039d316-1c4b-4281-b951-d872f2087c98
* Restore ability to specify the new tab page as a first-run tab via ↵grt@chromium.org2011-06-171-1/+1
| | | | | | | | | | | installerdata/master_preferences. I suppose that an empty GURL used to trigger the NTP, but that is no longer the case. It appears that the right way to do this is to use chrome://newtab, for which we have a nice constant. BUG=86493 TEST=specify http://new_tab_page as a first_run_tab as per http://crbug/9706 and see that it works. Review URL: http://codereview.chromium.org/7205003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89506 0039d316-1c4b-4281-b951-d872f2087c98
* [Landed on behalf of junov@chromium.org]senorblanco@chromium.org2011-06-101-4/+0
| | | | | | | | | | | | Remove infobar warning for accelerated 2d canvas flag This is a partial revert of r88616, so a partial un-revert of r86510 BUG=82348 TEST=none TBR=vangelis@chromium.org Review URL: http://codereview.chromium.org/7104112 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@88680 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 86510 - Contributed by junov@chromium.orgvangelis@chromium.org2011-06-101-0/+4
| | | | | | | | | | | | | | NOTE: Temporarily disabling accelerated 2d canvas by default Turns on the gpu accelerated canvas by default BUG=82017 TEST=none Review URL: http://codereview.chromium.org/7064032 TBR=junov@chromium.org Review URL: http://codereview.chromium.org/6995124 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@88616 0039d316-1c4b-4281-b951-d872f2087c98
* Changes TemplateURLModel into TemplateURLService. Changes all access points ↵erg@google.com2011-06-071-2/+4
| | | | | | | | | | | | | | to go through the newly made ProfileKeyedServiceFactory subclass. In addition, makes further modifications to the unit testing stuff because the TemplateURL tests change the active TemplateURLService on a profile during the test. BUG=77155 TEST=unit tests R=mirandac Review URL: http://codereview.chromium.org/7056056 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@88153 0039d316-1c4b-4281-b951-d872f2087c98
* Factor load notification detail structs out of NavigationController and into pinkerton@chromium.org2011-05-311-3/+3
| | | | | | | | | | | their own file in the |content| namespace. Remove un-necessary includes of navigation_controller.h. BUG=none TEST=everything compiles Review URL: http://codereview.chromium.org/7008018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87319 0039d316-1c4b-4281-b951-d872f2087c98
* Use registered protocol handlers at startup.koz@chromium.org2011-05-311-2/+5
| | | | | | | | | | | | At startup we check the protocol handlers from the profile for urls passed in on the cmd line, BUG=73710 TEST=Manual Review URL: http://codereview.chromium.org/7071011 Patch from Ben Wells <benwells@chromium.org>. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87262 0039d316-1c4b-4281-b951-d872f2087c98
* Moving mediaplayer to the chrome filebrowser. Observable behaviour should ↵serya@google.com2011-05-271-1/+0
| | | | | | | | | | | not change. BUG=chromium-os:14880 TEST=Click "play" button on an audion file in the file browser. Check that the mediaplayer panel has popped up. Click on another file. Check that the mediaplayer playlist panel has popped up and contains 2 items. Review URL: http://codereview.chromium.org/7067020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87002 0039d316-1c4b-4281-b951-d872f2087c98
* Remove ProtocolFactory/Interceptor uses in GViewRequestInterceptor.willchan@chromium.org2011-05-261-6/+0
| | | | | | | | | | | | | Gets rid of more use of net/ globals, replacing with URLRequestJobFactory uses. Helps make net/ more thread-compatible. BUG=81979 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=86802 Review URL: http://codereview.chromium.org/7019030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86804 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 86802 - Remove ProtocolFactory/Interceptor uses in ↵willchan@chromium.org2011-05-261-0/+6
| | | | | | | | | | | | | | | | GViewRequestInterceptor. Gets rid of more use of net/ globals, replacing with URLRequestJobFactory uses. Helps make net/ more thread-compatible. BUG=81979 TEST=none Review URL: http://codereview.chromium.org/7019030 TBR=willchan@chromium.org Review URL: http://codereview.chromium.org/7075005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86803 0039d316-1c4b-4281-b951-d872f2087c98
* Remove ProtocolFactory/Interceptor uses in GViewRequestInterceptor.willchan@chromium.org2011-05-261-6/+0
| | | | | | | | | | | Gets rid of more use of net/ globals, replacing with URLRequestJobFactory uses. Helps make net/ more thread-compatible. BUG=81979 TEST=none Review URL: http://codereview.chromium.org/7019030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86802 0039d316-1c4b-4281-b951-d872f2087c98
* Contributed by junov@chromium.org junov@chromium.org2011-05-241-4/+0
| | | | | | | | | | Turns on the gpu accelerated canvas by default BUG=82017 TEST=none Review URL: http://codereview.chromium.org/7064032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86510 0039d316-1c4b-4281-b951-d872f2087c98
* linux: infobar for obsolete OSevan@chromium.org2011-05-191-1/+27
| | | | | | | | | | | | | | We will stop providing Chrome releases for Ubuntu Hardy-era distros. We should at least inform those users about this. (Retry of r85956, with views fix.) BUG=79401 TEST=tried manually changing code to require a newer GTK, saw infobar Review URL: http://codereview.chromium.org/7012024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85977 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "linux: infobar for obsolete OS"evan@chromium.org2011-05-191-26/+0
| | | | | | This reverts commit r85956, failed on views. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85958 0039d316-1c4b-4281-b951-d872f2087c98
* linux: infobar for obsolete OSevan@chromium.org2011-05-191-0/+26
| | | | | | | | | | | | We will stop providing Chrome releases for Ubuntu Hardy-era distros. We should at least inform those users about this. BUG=79401 TEST=tried manually changing code to require a newer GTK, saw infobar Review URL: http://codereview.chromium.org/7012024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85956 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor the "Learn more" DNS infobar shown on startupevan@chromium.org2011-05-191-32/+37
| | | | | | | | | | | | It now displays a link instead of a button for the "Learn more" action. I intend to reuse this for the "Your OS is obsolete" infobar. BUG=79401 Review URL: http://codereview.chromium.org/7047012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85946 0039d316-1c4b-4281-b951-d872f2087c98
* Hide translate infobar on programmatic navigation.jeremy@chromium.org2011-05-181-1/+1
| | | | | | | | | | | | | | | In Google news, you can change the UI language through a popup menu [which does so by submitting a form programmatically]. The translation infobar wasn't being refreshed in this situation because the page navigation being performed is programmatic. Infobar hiding on navigation, goes through TabContents::ExpireInfoBars() which has an early return if the navigation just performed wasn't initiated by the user. After this, the code loops through the list of infobars and calls ShouldExpire() on each one to determine if it can be closed. This CL removes the early return and moves the code to determine dismissal to the ShouldExpire() method of the infobar delegates, thus allowing the translate infobar to indicate that it can be dismissed on page navigation. BUG=70261 TEST=See bug. Review URL: http://codereview.chromium.org/6883299 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85731 0039d316-1c4b-4281-b951-d872f2087c98
* Move the little infobar code from TabContents to TabContentsWrapper.jam@chromium.org2011-05-181-10/+10
| | | | | | | BUG=76792 Review URL: http://codereview.chromium.org/7010017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85703 0039d316-1c4b-4281-b951-d872f2087c98
* Create a URLRequestJobFactory to replace the URLRequest globals.willchan@chromium.org2011-05-141-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | URLRequest::Interceptor and URLRequest::ProtocolFactory are globally registered. This causes a variety of problems. This provides a method for replacing them. It used to be the case that we used net::URLRequest::IsHandledProtocol()/net::URLRequest::IsHandledURL() to see if the request would be handled by Chrome, or deferred to an external protocol handler. This required that URLRequest be aware of all protocol handlers. We instead provide ProfileIOData::IsHandledProtocol(), which checks to see if there are any Chrome registered protocol handlers, and if not, checks the default ones in net::URLRequest. Note this doesn't work for custom handlers (registerProtocolHandler) because they are dynamic and profile-specific. We would have to add a member function to ProfileIOData and not use a global. This is problematic since we check ProfileIOData::IsHandledProtocol in the RenderViewContextMenu, which runs on the UI thread, whereas ProfileIOData lives on the IO thread. RenderViewContextMenu is using also using it synchronously, which makes it a pain to support. So, we don't support custom handlers in ProfileIOData::IsHandledProtocol(). This means that "save as" won't work for custom handlers. Seems ok for now. This also fixes the multiprofile/incognito bugs where if a profile registers a custom handler, and then a different profile / an incognito profile registers the same custom handler and then unregisters it, which globally unregisters it, so the original profile is now broken. By removing the use of the globals, we fix this. Also fixes a bunch of style guide violations in the ProtocolHandler/ProtocolHandlerRegistry code. This changelist replaces two existing URLRequest::ProtocolFactory uses: chrome-extension/user-script and custom handlers. Also improve the tests in ResourceDispatcherHost so we don't have to do as many NULL checks. Change the MockResourceContext to create a TestURLRequestContext. BUG=81979 TEST=none Review URL: http://codereview.chromium.org/6960006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85376 0039d316-1c4b-4281-b951-d872f2087c98
* Consolidate most CommandLine code across platforms.msw@chromium.org2011-05-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | Significant refactoring with some notable behavior changes: 1. Switches are appended preceding existing arguments (after other swtiches). 2. (Windows) command_line_string() is generated and properly quoted/escaped. 3. Appended switches will retain their (optional) included prefixes (--,-,/). Notable internal changes (shouldn't affect behavior): 1. (Windows) Generate the cl string, instead of storing&updating the original. 2. Explicitly retain switch prefixes (--,-,/) (was automatic in init*/ctor). Update (obvious) code expecting switches to be appended antecedent to args. Add Nico's test from: codereview.chromium.org/6728016/. An intermediary CL landed between patch set 3 and 4, see: http://codereview.chromium.org/6596020 BUG=73195,67764 TEST=Commandline usage. Review URL: http://codereview.chromium.org/6526040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85360 0039d316-1c4b-4281-b951-d872f2087c98
* Add infobar warning when accelerated 2d canvas is enabled.vangelis@chromium.org2011-05-121-0/+4
| | | | | | | BUG=82348 Review URL: http://codereview.chromium.org/7015015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85191 0039d316-1c4b-4281-b951-d872f2087c98
* Extension Apps that prefer a panel over a tab, should launch that way whenfinnur@chromium.org2011-05-061-4/+5
| | | | | | | | | | launched from the Omnibox. BUG=81379 TEST=Install Scratchpad extension (from Google). Launch it from the Omnibox and it should launch as a panel app. Test Paste and Go also like you normally would (it is affected). Review URL: http://codereview.chromium.org/6913022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84428 0039d316-1c4b-4281-b951-d872f2087c98
* Browser::Type cleanup.jianli@chromium.org2011-05-051-1/+1
| | | | | | | | | | BUG=None TEST=Existing tests R=ben@chromium.org,stevenjb@chromium.org,phajdan.jr@chromium.org Review URL: http://codereview.chromium.org/6697032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84303 0039d316-1c4b-4281-b951-d872f2087c98
* Replace the virtual InfoBarDelegate::InfoBarClosed() function with a ↵pkasting@chromium.org2011-05-051-34/+37
| | | | | | | | | | | | | | | | non-virtual one. This is a step along the way to killing it entirely. This also adds a lot of OVERRIDE markers and does some other cleanup in a few places. The original (stupid) design for the delegate class left subclasses great flexibility in how they mapped infobars to delegates. In practice, no one ever wanted multiple infobars driven off a single delegate, so the mapping was always one-to-one. As a result, it was always correct for InfoBarClosed() to "delete this", but because the base class did not do so, every subclass needed to. Most did; the others leaked memory and failed to run their destructors. This change forces the base class to delete itself. This fixes the delegate leaks in the couple subclasses that failed to do this. It also eliminates a lot of copy-and-pasted "delete this" implementations. Ultimately, we'll be moving to a model where the InfoBar "view" class owns the delegate and deletes it directly, which will eliminate InfoBarClosed() completely. BUG=62154 TEST=none Review URL: http://codereview.chromium.org/6926001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84195 0039d316-1c4b-4281-b951-d872f2087c98
* Don't show the security infobar for --enable-nacl, which is in about:flagsdmichael@chromium.org2011-05-031-3/+0
| | | | | | | | | BUG=77590 TEST=start chrome with '--enable-nacl', or turn it on in about:flags and restart. Confirm that _no_ infobar appears saying 'You are using an unsupported command-line flag: --enable-nacl. Stability and security will suffer.'. Review URL: http://codereview.chromium.org/6913029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83945 0039d316-1c4b-4281-b951-d872f2087c98
* Submitting http://codereview.chromium.org/6901058/ on behalf of rhashimotosaintlou@chromium.org2011-04-291-0/+1
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/6902156 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83547 0039d316-1c4b-4281-b951-d872f2087c98
* Profile shouldn't own Session/TabRestore services.torne@chromium.org2011-04-281-7/+10
| | | | | | | | | | | | | | BaseSessionService is now a ProfileKeyedService. Its subclasses, SessionService and TabRestoreService, are now accessed through factories. BUG=77155 TEST=existing tests Review URL: http://codereview.chromium.org/6901031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83325 0039d316-1c4b-4281-b951-d872f2087c98
* Remove chrome/browser/chromeos/wm_overview_*hashimoto@chromium.org2011-04-221-4/+0
| | | | | | | | | | BUG=chromium-os:14305 TEST= Review URL: http://codereview.chromium.org/6882069 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82627 0039d316-1c4b-4281-b951-d872f2087c98
* Make InfoBarDelegate::GetIcon() return gfx::Image rather than SkBitmap.rsesek@chromium.org2011-04-211-6/+6
| | | | | | | | | BUG=carnitas TEST=visual Review URL: http://codereview.chromium.org/6883095 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82569 0039d316-1c4b-4281-b951-d872f2087c98
* Mac Canary: Don't offer to set as the default browser.mark@chromium.org2011-04-191-5/+4
| | | | | | | | | | | | | 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
* More TabStripModel renaming:sky@chromium.org2011-04-181-1/+1
| | | | | | | | | | | | | | | | AddTabTypes::ADD_SELECTED -> ADD_ACTIVE SelectTabContentsAt -> ActivateTabAt BUG=none TEST=none R=ben@chromium.org BUG=none TEST=none Review URL: http://codereview.chromium.org/6840007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81947 0039d316-1c4b-4281-b951-d872f2087c98
* Fix the histogram tracking command line app launches.jstritar@chromium.org2011-04-141-1/+8
| | | | | | | | | | | An old feature let users launch any URL with the --app command line switch. This change separates out non app --app launches into a separate histogram. BUG=78357 TEST=None. Review URL: http://codereview.chromium.org/6851003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81587 0039d316-1c4b-4281-b951-d872f2087c98
* Launch print dialog from BrowserInit::ProcessCmdLineImpl rather than ↵abodenha@google.com2011-04-131-2/+3
| | | | | | | | | | | | | BrowserMain. This allows the print dialog to work even if chrome is already running. BUG= TEST=Run Chrome.exe normally then run a second copy with --cloud-print-file="<some valid file>" Also, run chrome.exe with --cloud-print-file with no other chrome.exe running. In both cases, the print dialog should display. Review URL: http://codereview.chromium.org/6833012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81475 0039d316-1c4b-4281-b951-d872f2087c98
* Added mount change notification event to extension API: zelidrag@chromium.org2011-04-121-13/+0
| | | | | | | | | | | | chrome.fileBrowserPrivate.onChanged.addListener(function(mountDirUrl) { ... }); BUG=chromium-os:13025 TEST=none Review URL: http://codereview.chromium.org/6749024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81208 0039d316-1c4b-4281-b951-d872f2087c98