summaryrefslogtreecommitdiffstats
path: root/chrome/browser
Commit message (Collapse)AuthorAgeFilesLines
* Send fatal proxy errors to the network delegate.jochen@chromium.org2011-02-234-4/+33
| | | | | | | | | BUG=60099 TEST=browser test Review URL: http://codereview.chromium.org/6541021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75726 0039d316-1c4b-4281-b951-d872f2087c98
* Used dashed-form for autofill overlay idsisherman@chromium.org2011-02-233-52/+53
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/6552002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75724 0039d316-1c4b-4281-b951-d872f2087c98
* First cut at a WATCHDOG thread that monitors threads for theirrtenneti@chromium.org2011-02-239-30/+1153
| | | | | | | | | | | | | | responsiveness by sending a ping message to them. Watched Threads respond by sending a pong message to WATCHDOG thread. WACTHDOG thread collects statistics for response time. BUG=71378 TEST=browser_thread_unit_test and thread_watcher_unittest. Starting and stopping of browser. Review URL: http://codereview.chromium.org/6392018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75723 0039d316-1c4b-4281-b951-d872f2087c98
* Autofill extend profiles to include multi-valued fields.dhollowa@chromium.org2011-02-233-177/+1010
| | | | | | | | | | | | | Changes to the underlying |autofill_profiles| schema. These changes split out name, email, and phone information into separate relationaly-tied tables so that we can support multi-valued fields. New tables are introduced: |autofill_profile_names|, |autofill_profile_emails|, and |autofill_profile_phones|. Also, the |label| fields have been removed from both |credit_cards| and |autofill_profiles|. BUG=65625 TEST=WebDatabaseMigrationTest.*:WebDatabaseTest.* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=75710 Review URL: http://codereview.chromium.org/6546034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75721 0039d316-1c4b-4281-b951-d872f2087c98
* Use ResourceBundle::BaseFont for GTK tooltips.falken@chromium.org2011-02-231-0/+11
| | | | | | | | | | | | If no font is specified, the font used can differ from the base font. This happens when we set the UI font manually using IDS_UI_FONT_FAMILY_CROS. BUG=chromium-os:7737 TEST=manually tested on netbook and Linux Review URL: http://codereview.chromium.org/6476023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75719 0039d316-1c4b-4281-b951-d872f2087c98
* WebUI: Fix the remaining references to dom_ui. Final Patch.tfarina@chromium.org2011-02-2324-29/+28
| | | | | | | | | BUG=59945, 59946 TEST=trybots Review URL: http://codereview.chromium.org/6555001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75716 0039d316-1c4b-4281-b951-d872f2087c98
* Highlight backspace key in the initial state.mazda@chromium.org2011-02-232-1/+3
| | | | | | | | | | | | This change highlights backspace key even when no modifier key is pressed as the reference image. http://chromiumos-git/git/?p=assets.git;a=blob;f=images/hotkey_overlay/hotkeys_base.png;h=7126f362c4ef594feb09bfe854bfe743eb0be399;hb=HEAD BUG=chromium-os:6268 TEST=manually on the netbook. Review URL: http://codereview.chromium.org/6538017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75714 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 75710 - Autofill extend profiles to include multi-valued fields.dhollowa@chromium.org2011-02-233-1010/+177
| | | | | | | | | | | | | | Changes to the underlying |autofill_profiles| schema. These changes split out name, email, and phone information into separate relationaly-tied tables so that we can support multi-valued fields. New tables are introduced: |autofill_profile_names|, |autofill_profile_emails|, and |autofill_profile_phones|. Also, the |label| fields have been removed from both |credit_cards| and |autofill_profiles|. BUG=65625 TEST=WebDatabaseMigrationTest.*:WebDatabaseTest.* Review URL: http://codereview.chromium.org/6546034 TBR=dhollowa@chromium.org Review URL: http://codereview.chromium.org/6563002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75713 0039d316-1c4b-4281-b951-d872f2087c98
* views: Remove Controller interface.tfarina@chromium.org2011-02-232-2/+2
| | | | | | | | | BUG=None TEST=None Review URL: http://codereview.chromium.org/6532083 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75712 0039d316-1c4b-4281-b951-d872f2087c98
* Move the rest of the core files in chrome\browser to content\browser.jam@chromium.org2011-02-2328-5224/+21
| | | | | | | TBR=avi Review URL: http://codereview.chromium.org/6538111 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75711 0039d316-1c4b-4281-b951-d872f2087c98
* Autofill extend profiles to include multi-valued fields.dhollowa@chromium.org2011-02-233-177/+1010
| | | | | | | | | | | Changes to the underlying |autofill_profiles| schema. These changes split out name, email, and phone information into separate relationaly-tied tables so that we can support multi-valued fields. New tables are introduced: |autofill_profile_names|, |autofill_profile_emails|, and |autofill_profile_phones|. Also, the |label| fields have been removed from both |credit_cards| and |autofill_profiles|. BUG=65625 TEST=WebDatabaseMigrationTest.*:WebDatabaseTest.* Review URL: http://codereview.chromium.org/6546034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75710 0039d316-1c4b-4281-b951-d872f2087c98
* views: Move the remaining layout constants to the views namespace. Final Part.tfarina@chromium.org2011-02-2321-100/+112
| | | | | | | | | BUG=None TEST=trybots Review URL: http://codereview.chromium.org/6538076 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75703 0039d316-1c4b-4281-b951-d872f2087c98
* Moved common parts of Linux autostart code to chrome/common so it can be ↵sanjeevr@chromium.org2011-02-231-40/+12
| | | | | | | | | | | reused in the service process as well. BUG=None TEST=None Review URL: http://codereview.chromium.org/6546024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75699 0039d316-1c4b-4281-b951-d872f2087c98
* chromeos: Check ALSA return values in mixer code.derat@chromium.org2011-02-232-25/+79
| | | | | | | | | | | | | | | | | | | We're seeing a NaN value sometimes get saved (incorrectly) to the prefs file in the volume setting, which results in the prefs file being unparseable the next time Chrome starts, which results in us going through OOBE again. The prefs code ought to write NaNs correctly so that they don't corrupt the file, but in the meantime, this change checks the return values from a bunch of ALSA functions (my best theory as to how the NaN is creeping in) and for good measure, also maps NaN volume values to the minimum volume. BUG=chromium-os:12229 TEST=built and ran it (i haven't been able to repro the problem) Review URL: http://codereview.chromium.org/6562001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75698 0039d316-1c4b-4281-b951-d872f2087c98
* gtk: Do not show tooltip for bookmarks folders.tfarina@chromium.org2011-02-231-0/+3
| | | | | | | | | BUG=72660 TEST=see bug. Review URL: http://codereview.chromium.org/6546038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75697 0039d316-1c4b-4281-b951-d872f2087c98
* Last used folder won't be selected when exporting bookmarks.tfarina@chromium.org2011-02-231-1/+4
| | | | | | | | | | | This patch fix this regression. BUG=70011 TEST=see bug Review URL: http://codereview.chromium.org/6532053 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75696 0039d316-1c4b-4281-b951-d872f2087c98
* Add autocomplete provider for "about:" URLs.pkasting@chromium.org2011-02-237-63/+163
| | | | | | | | | | | | | | | This is a reworked version of r74451 that makes the following changes: * Removed function to convert an about: string to a URL. We don't need this in the autocomplete side because the "about:" URLs will be correctly handled when the user hits enter; and removing it means we don't need to ensure that the data provider is initialized, because that will also be done automatically. * Clean up the about:about HTML construction to be shorter and produce slightly more readable source code * Remove about:vaporware (cleared with thakis, who added it) (Obviously, the last two changes are "while I'm here, ..." cleanups.) BUG=6870 TEST=Typing "about:s" into the omnibox should result in a couple of "about:s..." URL entries in the dropdown even if you've never visited them. Review URL: http://codereview.chromium.org/6474019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75691 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor HttpStreamFactory.willchan@chromium.org2011-02-234-114/+51
| | | | | | | | | | | | | | | | | | | Rename StreamFactory and StreamRequest to HttpStreamFactory and HttpStreamRequest. Rename HttpStreamFactory to HttpStreamFactoryImpl. Create HttpStreamFactoryImpl::Request (inherits from HttpStreamRequest) and HttpStreamFactoryImpl::Job (most of the old HttpStreamRequest code, other than the interface, moved here). Currently there is still a strong binding within HttpStreamFactoryImpl between requests and jobs. This will be removed in a future changelist. Note that due to the preparation for late binding, information like HttpRequestInfo and SSLConfig and ProxyInfo are just copied. It's possible we can consider refcounting them to reduce copies, but I think it's not worth the effort / ugliness. I also did some minor cleanups like moving SpdySettingsStorage into SpdySessionPool and some CloseIdleConnections() cleanup. BUG=54371,42669 TEST=unit tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=75668 Review URL: http://codereview.chromium.org/6543004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75688 0039d316-1c4b-4281-b951-d872f2087c98
* Adds navigator.registerProtocolHandler.tony@chromium.org2011-02-2314-1/+552
| | | | | | | | | BUG=11359 TEST=None at the moment Review URL: http://codereview.chromium.org/6410115 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75681 0039d316-1c4b-4281-b951-d872f2087c98
* linux: Constrain popup window size correctly.derat@chromium.org2011-02-231-4/+3
| | | | | | | | | | | | | | Fixes a regression that I introduced while refactoring some code in r74534. We were limiting the size passed to GTK+ for very large popup windows but storing the unconstrained size internally. BUG=72910 TEST=manual with test case from bug Review URL: http://codereview.chromium.org/6469097 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75673 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 75668 for breaking ChromeOS build - Refactor HttpStreamFactory.willchan@chromium.org2011-02-233-49/+112
| | | | | | | | | | | | | | | | | | | Rename StreamFactory and StreamRequest to HttpStreamFactory and HttpStreamRequest. Rename HttpStreamFactory to HttpStreamFactoryImpl. Create HttpStreamFactoryImpl::Request (inherits from HttpStreamRequest) and HttpStreamFactoryImpl::Job (most of the old HttpStreamRequest code, other than the interface, moved here). Currently there is still a strong binding within HttpStreamFactoryImpl between requests and jobs. This will be removed in a future changelist. Note that due to the preparation for late binding, information like HttpRequestInfo and SSLConfig and ProxyInfo are just copied. It's possible we can consider refcounting them to reduce copies, but I think it's not worth the effort / ugliness. I also did some minor cleanups like moving SpdySettingsStorage into SpdySessionPool and some CloseIdleConnections() cleanup. BUG=54371,42669 TEST=unit tests Review URL: http://codereview.chromium.org/6543004 TBR=willchan@chromium.org git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75670 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor HttpStreamFactory.willchan@chromium.org2011-02-223-112/+49
| | | | | | | | | | | | | | | | | Rename StreamFactory and StreamRequest to HttpStreamFactory and HttpStreamRequest. Rename HttpStreamFactory to HttpStreamFactoryImpl. Create HttpStreamFactoryImpl::Request (inherits from HttpStreamRequest) and HttpStreamFactoryImpl::Job (most of the old HttpStreamRequest code, other than the interface, moved here). Currently there is still a strong binding within HttpStreamFactoryImpl between requests and jobs. This will be removed in a future changelist. Note that due to the preparation for late binding, information like HttpRequestInfo and SSLConfig and ProxyInfo are just copied. It's possible we can consider refcounting them to reduce copies, but I think it's not worth the effort / ugliness. I also did some minor cleanups like moving SpdySettingsStorage into SpdySessionPool and some CloseIdleConnections() cleanup. BUG=54371,42669 TEST=unit tests Review URL: http://codereview.chromium.org/6543004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75668 0039d316-1c4b-4281-b951-d872f2087c98
* WebUI: Move chrome/browser/dom_ui/ to chrome/browser/webui/.tfarina@chromium.org2011-02-2281-163/+163
| | | | | | | | | | | | | To reduce the size of this change I've left stub header files in chrome/browser/dom_ui/. I'll updated the references and delete the stub files later. BUG=59945, 59946 TEST=trybots Review URL: http://codereview.chromium.org/6538075 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75660 0039d316-1c4b-4281-b951-d872f2087c98
* Redo implementation of this fix so that extensions can capture their owntsepez@chromium.org2011-02-221-6/+4
| | | | | | | | | | | chrome-extension:// pages. BUG=72523 TEST=ExtensionApiTest.Capture* Review URL: http://codereview.chromium.org/6534005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75655 0039d316-1c4b-4281-b951-d872f2087c98
* Fix rendering glitch that occurs when you uninstall the last installed app.jstritar@chromium.org2011-02-221-1/+1
| | | | | | | | | BUG=69316 TEST=See bug. Review URL: http://codereview.chromium.org/6520014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75654 0039d316-1c4b-4281-b951-d872f2087c98
* Move core pieces of chrome\browser. I've only gone up to "g", will do the ↵jam@chromium.org2011-02-2229-4225/+32
| | | | | | | | | rest in another cl. TBR=avi Review URL: http://codereview.chromium.org/6538100 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75652 0039d316-1c4b-4281-b951-d872f2087c98
* Fix crashes when the ExtensionService isn't present (e.g. incognito, chrome ↵piman@google.com2011-02-228-8/+36
| | | | | | | | | | | | | os before login). This is a workaround until http://code.google.com/p/chromium/issues/detail?id=73768 is fixed. BUG=73658 TEST=with chromeos=1 build, go to any site and check no crash. Review URL: http://codereview.chromium.org/6544023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75651 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor BookmarkBarController action-handling to make bookmark bar menu ↵maf@chromium.org2011-02-222-16/+21
| | | | | | | | | | | | tracking work properly when initiated by a click on the chevron button. BookmarkBarController unit tests are happy with the change. BUG=59868 TEST=Click on the chevron button, then track onto other bookmark bar buttons and bookmark bar folder buttons, rapidly becoming amazed that everything actually works now. Review URL: http://codereview.chromium.org/6541075 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75650 0039d316-1c4b-4281-b951-d872f2087c98
* Remove ComparePathNames.nick@chromium.org2011-02-227-88/+7
| | | | | | | | | | | Dead code cleanup. BUG=none TEST=Unit tests. Review URL: http://codereview.chromium.org/6542007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75649 0039d316-1c4b-4281-b951-d872f2087c98
* Recreate both GpuProcessHost and GpuProcessHostUIShim when a new GPU process ↵apatrick@chromium.org2011-02-2214-182/+603
| | | | | | | | | | | | | | | | | is launched. This is so that a renderer that was previously sending messages to the browser regarding a particular GPU process, it can be informed that a new one has been launched and that it has to start over. This part is not done yet. Both GpuProcessHost and GpuProcessHostUIShim are now identified by a common host ID. Neither are singletons. This is also a step towards allowing multiple GPU processes. TEST=trybots, check WebGL and 3D CSS work, check terminating Chrome works while running WebGL, check --single-process works, checking terminated GPU process is relaunched and that 3D CSS restarts automatically BUG=none Review URL: http://codereview.chromium.org/6473003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75645 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 75625 - Refactor app launching code for clarity. Add unit tests.hansl@chromium.org2011-02-225-241/+58
| | | | | | | | | | | | | | Was failing on check_perms. Check http://build.chromium.org/p/chromium/builders/Linux/builds/3520 for more info. BUG=None TEST=BrowserInitTest.* Review URL: http://codereview.chromium.org/6543006 TBR=skerner@google.com Review URL: http://codereview.chromium.org/6469100 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75643 0039d316-1c4b-4281-b951-d872f2087c98
* Convert ElideString to use string16 instead of wstring.tony@chromium.org2011-02-228-35/+37
| | | | | | | | BUG=23581 Review URL: http://codereview.chromium.org/6526027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75641 0039d316-1c4b-4281-b951-d872f2087c98
* This patch adds the necessary plumbing to Chromium to support a command-line ↵wjmaclean@chromium.org2011-02-221-0/+2
| | | | | | | | | | | flag for turning on composite-to-texture behaviour. This will facilitate running GPU tests against both composite-to-display and composite-to-texture. BUG=none TEST=none Review URL: http://codereview.chromium.org/6134012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75640 0039d316-1c4b-4281-b951-d872f2087c98
* Fix two new chromium-style regressions on linux.erg@google.com2011-02-224-3/+8
| | | | | | | | | BUG=carnitas TEST=compiles Review URL: http://codereview.chromium.org/6546063 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75637 0039d316-1c4b-4281-b951-d872f2087c98
* Fix a memory leak and add the webkit_quota library to the project.michaeln@google.com2011-02-222-5/+4
| | | | | | | | | BUG=73268 TEST=look at the memory bots this time Review URL: http://codereview.chromium.org/6469036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75633 0039d316-1c4b-4281-b951-d872f2087c98
* Print Preview: Generate previews on Linux.thestig@chromium.org2011-02-221-2/+2
| | | | | | | | BUG=none TEST=Run with --enable-print-preview on Linux. Review URL: http://codereview.chromium.org/6546033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75627 0039d316-1c4b-4281-b951-d872f2087c98
* Out of line cleanups for Mac.erg@google.com2011-02-2213-75/+156
| | | | | | | | | BUG=none TEST=compiles Review URL: http://codereview.chromium.org/6542027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75626 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor app launching code for clarity. Add unit tests.skerner@google.com2011-02-225-58/+241
| | | | | | | | | BUG=None TEST=BrowserInitTest.* Review URL: http://codereview.chromium.org/6543006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75625 0039d316-1c4b-4281-b951-d872f2087c98
* Move background_contents back to chrome, since that's part of extensions ↵jam@chromium.org2011-02-222-2/+445
| | | | | | | | which isn't moving. I incorrectly moved it. Review URL: http://codereview.chromium.org/6538095 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75624 0039d316-1c4b-4281-b951-d872f2087c98
* Add an icon to the omnibox when a page is prerendered.cbentzel@chromium.org2011-02-2213-51/+136
| | | | | | | | | | | | | This will only show up for users who have prerendering enabled (mainly via about:flags) This CL does not include the logic for displaying whether prerender failed on the referring page. BUG=73065 TEST=Start Chrome with prerendering enabled, go to a page with a <link rel=prefetch> element, navigate to the referred page, and see icon appear. Review URL: http://codereview.chromium.org/6529031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75621 0039d316-1c4b-4281-b951-d872f2087c98
* Propagate the remote socket address to URLRequest and to ↵bryner@chromium.org2011-02-222-0/+45
| | | | | | | | | | | | | | | | ViewHostMsg_FrameNavigate. This will be used to run pre-classification checks for client-side phishing detection, and will also enable the socket address to be exposed via the webRequest extension API. This is adapted from the original patch by pmarks on http://codereview.chromium.org/6369003/ . BUG=51663 TEST=added socket address checks to various unittests Review URL: http://codereview.chromium.org/6488010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75620 0039d316-1c4b-4281-b951-d872f2087c98
* Implements the mouse commands for webdriver.jmikhail@google.com2011-02-222-42/+163
| | | | | | | | | | | | | | | | | | | | | Move the mouse over an element. /session/:sessionId/element/:id/hover Drag and drop an element. The distance to drag an element should be specified relative to the upper-left corner of the page. /session/:sessionId/element/:id/drag Click on an element. /session/:sessionId/element/:id/click The events in this CL use Webkit events and do not use OS level calls. BUG=none TEST=webdriver_remote_tests.py Review URL: http://codereview.chromium.org/4681007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75618 0039d316-1c4b-4281-b951-d872f2087c98
* Do not block in OwnershipService::IsAlreadyOwned on UI thread.dilmah@chromium.org2011-02-2211-120/+162
| | | | | | | | | | | | Moved all stuff related to GetOwnershipStatus from user_cros_settings.cc where it was irrelevant to OwnershipService. Prefetch and cache ownership status in order not to block on UI thread. BUG=chromium:70097 TEST=Manual Review URL: http://codereview.chromium.org/6538057 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75617 0039d316-1c4b-4281-b951-d872f2087c98
* [Mac] Fix the z-order of the findbar in relation to infobars.rsesek@chromium.org2011-02-221-1/+1
| | | | | | | | | BUG=73590 TEST=Go to http://it.wikipedia.org to get a translate infobar. Open Find in Page. Findbar is visible and can be used. Review URL: http://codereview.chromium.org/6541063 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75615 0039d316-1c4b-4281-b951-d872f2087c98
* Inserted default directory for the Export Bookmarks dialog boxdpapad@chromium.org2011-02-222-5/+12
| | | | | | | | | | | BUG= related to 70011 TEST= tested on Linux Instead of defaulting to the dir where Chrome launched, it defaults to the equivalent of "Documents" directory for every platform. Review URL: http://codereview.chromium.org/6532027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75608 0039d316-1c4b-4281-b951-d872f2087c98
* Integrate gfx::Image into the ResourceBundle.rsesek@chromium.org2011-02-2229-42/+39
| | | | | | | | | | | | | | | | | | | | | | This changes the definition of GetNativeImageNamed to return a gfx::Image and adds GetImageNamed in addition. GetBitmapNamed now goes through that method. On Linux, GetNativeImageNamed will load directly into a GdkPixbuf-backed Image. Mac will still first load through Skia (a future CL will load directly into an NSImage). All other platforms use Skia natively, so GetNativeImageNamed is the same as GetImageNamed. Mac was the only platform that used the old GetNativeImageNamed, so this also transitions a bunch of Mac files by including ui/gfx/image.h. This also obviates the need for platform-specific image caches in the ResourceBundle, so there's some additional cleanup around that. BUG=carnitas TEST=All UI images in Chromium show up as before. Review URL: http://codereview.chromium.org/6541031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75605 0039d316-1c4b-4281-b951-d872f2087c98
* Show startup infobars when restoring session.agl@chromium.org2011-02-224-28/+51
| | | | | | | | | | | | | | At the moment, startup infobars (such as the bar which warns about --no-sandbox) doesn't show at startup if the user has their preferences set to restore the previous session. This is because the RestoreSessionSynchronously code path never hits the logic to show them. BUG=none TEST=Set preferences to restore previous session at startup. Close and restart Chrome with --no-sandbox. Verify that the warning infobar appears. Review URL: http://codereview.chromium.org/6532062 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75602 0039d316-1c4b-4281-b951-d872f2087c98
* PrintPreview: Send the expected pages count value to Web UI along with ↵kmadhusu@chromium.org2011-02-224-5/+14
| | | | | | | | | | | | | preview data. To display initial page range text, we need expected pages count value. Therefore, I added a |expected_pages_count| field to ViewHostMsg_DidPreviewDocument_Params structure. BUG=none TEST=Enable print preview on mac. In the preview tab after loading the preview data an initial page range text is displayed. Review URL: http://codereview.chromium.org/6542002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75599 0039d316-1c4b-4281-b951-d872f2087c98
* Adjusting "about:flags" styles to distingish enabled and disabled labs.thakis@chromium.org2011-02-221-4/+17
| | | | | | | | | | BUG=59874 TEST=Look at "about:flags". You should be able to determine at a glance which labs are enabled. Review URL: http://codereview.chromium.org/6541017 Patch from Mike West <mkwst@chromium.org>. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75593 0039d316-1c4b-4281-b951-d872f2087c98
* Fix a missed Paint->OnPaint rename.sadrul@chromium.org2011-02-221-1/+1
| | | | | | | | | BUG=73137 TEST=none Review URL: http://codereview.chromium.org/6532066 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75592 0039d316-1c4b-4281-b951-d872f2087c98