summaryrefslogtreecommitdiffstats
path: root/chrome/browser
Commit message (Collapse)AuthorAgeFilesLines
* Make gears_integration.cc compile on Posix. Change the GearsCreateShortcut ↵jhawkins@chromium.org2009-02-176-18/+24
| | | | | | | | callback to use GearsShortCutData2. Review URL: http://codereview.chromium.org/20412 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9918 0039d316-1c4b-4281-b951-d872f2087c98
* Check the file handle for NULL before using it to write. Under somebrettw@chromium.org2009-02-171-20/+15
| | | | | | | | | | | | | circumstances this might be NULL if we opened the file after initialization and it failed. In this case, we should just silently fail rather than throwing an invalid parameter exception. I'm not 100% sure this will fix the bug below, I did this by inspection. BUG=7566 Review URL: http://codereview.chromium.org/21425 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9917 0039d316-1c4b-4281-b951-d872f2087c98
* Fix crasher in GetDefaultSearchEngineName() in first run bubble.cpu@google.com2009-02-173-12/+17
| | | | | | | | | | | | - It seems that BrowserList::GetLastActive() is returning null, probably it takes longer now for the browser to become active. - But rather than guessing the profile, get it from the guts of the location bar. - crasher is ranked #34 by Laforge BUG=6211 Review URL: http://codereview.chromium.org/20381 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9916 0039d316-1c4b-4281-b951-d872f2087c98
* Fix a memory leak of the renderer thread objects in single process mode.brettw@chromium.org2009-02-171-3/+8
| | | | | | | BUG=6538 Review URL: http://codereview.chromium.org/21432 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9915 0039d316-1c4b-4281-b951-d872f2087c98
* Add importer/firefox_profile_lock_posix.cc to the build.thestig@chromium.org2009-02-171-0/+1
| | | | | | Review URL: http://codereview.chromium.org/21427 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9914 0039d316-1c4b-4281-b951-d872f2087c98
* Persist info about subresources on pages for DNS pre-resolutionjar@chromium.org2009-02-179-15/+387
| | | | | | | | | | | | | | | | | | | | | The DNS pre-resolution system already "learns" what domains are commonly needed when rendering sub-resources of a page at a given domain. This patch saves (some of) the information learned into a persistent pref, and restores it on startup. For now, I put in a wimpy pruning of the list each time I save, so that the list will not grow endlessly from session to session. I probably need a better pruning algorithm, such as one that prunes after a given amount of time, rather than only during shutdown. For now, this should get a lot of nice results, and provide slightly larger than needed lists to users that have long lived sessions, which is similar to the current performance, where I didn't persist any info, and only pruned (actually discarded) all learned info at shutdown. r=mbelshe Review URL: http://codereview.chromium.org/21374 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9912 0039d316-1c4b-4281-b951-d872f2087c98
* Hook up theme images and chrome resource data on linux.tc@google.com2009-02-172-65/+69
| | | | | | | | | | Go ahead and convert our toolbar buttons to using the theme data pack file. Review URL: http://codereview.chromium.org/20433 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9911 0039d316-1c4b-4281-b951-d872f2087c98
* Do two TODOs related to --load-extension:aa@chromium.org2009-02-174-22/+41
| | | | | | | | | | | * Stop watching extension dirs for user script changes. * Stop supporting unversioned extension dirs. Also a few minor related cleanups. Review URL: http://codereview.chromium.org/20390 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9909 0039d316-1c4b-4281-b951-d872f2087c98
* Remove TabContentsDelegate from scaffolding. Remove a large chunk of ifdef'd ↵pinkerton@chromium.org2009-02-173-38/+17
| | | | | | | | code from browser.cc to go along with it as well as enabling more functionality. Review URL: http://codereview.chromium.org/21424 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9908 0039d316-1c4b-4281-b951-d872f2087c98
* Changes new tab page to not make a link for recently closedsky@google.com2009-02-171-3/+4
| | | | | | | | | | | | windows. It was rather bogus that we were doing this before as there is nothing for the window to link to. BUG=5836 TEST=see bug Review URL: http://codereview.chromium.org/21426 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9907 0039d316-1c4b-4281-b951-d872f2087c98
* Significantly rework coordinate handling for the Cocoa views. Fixes tons of ↵avi@chromium.org2009-02-178-49/+75
| | | | | | | | redraw and scrolling issues. Review URL: http://codereview.chromium.org/20435 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9905 0039d316-1c4b-4281-b951-d872f2087c98
* Keyboard focus mostly works on Linux.evan@chromium.org2009-02-173-7/+28
| | | | | | | | | | | I added more TODOs than I removed, but they're now for more subtle cases: - the web page didn't handle a keystroke and our accelerators should; - you tab off the end of the list of tabbable things on the page. Review URL: http://codereview.chromium.org/21428 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9903 0039d316-1c4b-4281-b951-d872f2087c98
* Default to using the current tab when opening a url until we hook up more ↵pinkerton@chromium.org2009-02-171-1/+1
| | | | | | | | advanced gestures. Returning to create a new tab is just wrong. Review URL: http://codereview.chromium.org/20434 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9902 0039d316-1c4b-4281-b951-d872f2087c98
* Change the encoding for tapuz.co.il to UTF-8 from windows-1255 and update ↵jungshik@google.com2009-02-171-2/+2
| | | | | | | | | | | | | the version to 20. BUG=7271 TEST=Start Chrome in Hebrew Windows or with cmdline switch "--country=IL --lang=he" and set the default search engine to tapuz (it's in Hebrew) and type a keyword in the omnibox and select search with 'tapuz'. Search result should come up with multiple hits. Review URL: http://codereview.chromium.org/20315 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9901 0039d316-1c4b-4281-b951-d872f2087c98
* Registering the AutoFill manager because someone added it to the build ↵avi@chromium.org2009-02-171-2/+2
| | | | | | | | without registering its prefs. Review URL: http://codereview.chromium.org/20431 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9899 0039d316-1c4b-4281-b951-d872f2087c98
* Make the toolbar background themed on Linux.evan@chromium.org2009-02-177-12/+261
| | | | | | | | | | Add a class for managing images for scalable themed widgets, and then implement the toolbar on top of this. Review URL: http://codereview.chromium.org/21390 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9898 0039d316-1c4b-4281-b951-d872f2087c98
* Create a menu wrapper class for GTK menus, and use it for the page and app ↵erg@google.com2009-02-177-31/+470
| | | | | | | | | menus. Review URL: http://codereview.chromium.org/20245 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9893 0039d316-1c4b-4281-b951-d872f2087c98
* Unstub some more of the Browser object, including the part that sets it as ↵pinkerton@chromium.org2009-02-175-5/+50
| | | | | | | | the delegate of the TabContents object. That allows page-load notifications to make their way through the browser UI layer. Hook up notification to Mac tab strip to set the title as it's changed. Review URL: http://codereview.chromium.org/20429 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9892 0039d316-1c4b-4281-b951-d872f2087c98
* put browser_main_gtk.cc next to other browser_main* cc files.tc@google.com2009-02-172-1/+1
| | | | | | | Review URL: http://codereview.chromium.org/21418 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9887 0039d316-1c4b-4281-b951-d872f2087c98
* Stub a function for Mac to get it to compile with my recent change.pkasting@chromium.org2009-02-172-0/+5
| | | | | | | TBR=pinkerton Review URL: http://codereview.chromium.org/20424 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9884 0039d316-1c4b-4281-b951-d872f2087c98
* Add stub for GTK to get it to build with my recent change.pkasting@chromium.org2009-02-172-0/+5
| | | | | | | TBR=tony Review URL: http://codereview.chromium.org/21416 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9883 0039d316-1c4b-4281-b951-d872f2087c98
* When internal functions try to focus the location bar, check whether it's ↵pkasting@chromium.org2009-02-175-5/+25
| | | | | | | | | focusable, and clear the focus if it's not. This shouldn't kick in in any cases today (I don't think), but it will matter in fullscreen mode, where creating a new tab should not attempt to focus the (unfocusable) location bar, but should not do nothing either, since these leaves focus in a hosed state. There are other choices here. I could make View::RequestFocus() try and clear the focus if the view is not focusable. That seems likely to cause side-effects unless I restore a lot of the calls to IsFocusable() that I previously removed. I also don't know whether sticking this on BrowserWindow was the right approach; if there's a better spot architecturally, speak up. Review URL: http://codereview.chromium.org/21368 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9882 0039d316-1c4b-4281-b951-d872f2087c98
* Fixes resizing. (The content will still be scaled a bit until the roundtrip ↵avi@chromium.org2009-02-171-0/+5
| | | | | | | | happens.) Review URL: http://codereview.chromium.org/21415 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9879 0039d316-1c4b-4281-b951-d872f2087c98
* Sad Tab view for the Mac.avi@chromium.org2009-02-174-1/+146
| | | | | | Review URL: http://codereview.chromium.org/20334 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9876 0039d316-1c4b-4281-b951-d872f2087c98
* Implement SetStarredState on LocationBar for Mac.pinkerton@chromium.org2009-02-177-3/+34
| | | | | | Review URL: http://codereview.chromium.org/21317 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9874 0039d316-1c4b-4281-b951-d872f2087c98
* Add render view id to AudioRendererHosthclam@chromium.org2009-02-172-69/+89
| | | | | | | | | | | | | | AudioRendererHost were assigning ids in the browser process, that means CreateStream has to be done in a synchronous IPC call. To avoid that we allow renderer processes to provide the stream id when they do CreateStrea. Then to identify a IPCAudioSource inside AudioRendererHost we need a tuple of (render_view_id, stream_id). By doing this we can create stream asynchronously just like BeginRequest in ResourceDispatcherHost. Review URL: http://codereview.chromium.org/21319 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9872 0039d316-1c4b-4281-b951-d872f2087c98
* IPC messages definitions for audio related requests fromhclam@chromium.org2009-02-162-0/+53
| | | | | | | | | | | | renderer to browser. Defined IPC messages that maps to methods exposed by AudioRendererHost that serves audio related requests. Also with handlers in ResourceMessageFilter for the newly added IPC messages. Review URL: http://codereview.chromium.org/21340 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9864 0039d316-1c4b-4281-b951-d872f2087c98
* Revert r9861 to fix buildhclam@chromium.org2009-02-162-53/+0
| | | | | | | | TBR=? Review URL: http://codereview.chromium.org/21399 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9862 0039d316-1c4b-4281-b951-d872f2087c98
* IPC messages definitions for audio related requests fromhclam@chromium.org2009-02-162-0/+53
| | | | | | | | | | | | renderer to browser. Defined IPC messages that maps to methods exposed by AudioRendererHost that serves audio related requests. Also with handlers in ResourceMessageFilter for the newly added IPC messages. Review URL: http://codereview.chromium.org/21340 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9861 0039d316-1c4b-4281-b951-d872f2087c98
* Call RegisterURLRequestChromeJob on browser startup for Linux and Mac.evan@chromium.org2009-02-161-1/+4
| | | | | | | | | | | Without this, ChromeURLDataManager::RemoveFileSource triggers a DCHECK for the "inspector" source since that's being called during shutdown lately. Review URL: http://codereview.chromium.org/20399 Patch from Craig Schlenter <craig.schlenter@gmail.com>. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9857 0039d316-1c4b-4281-b951-d872f2087c98
* Reverting 9855.maruel@chromium.org2009-02-1612-466/+2
| | | | | | | This change didn't have any description and it broke the tree Review URL: http://codereview.chromium.org/21393 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9856 0039d316-1c4b-4281-b951-d872f2087c98
* Review URL: http://codereview.chromium.org/20405yurys@google.com2009-02-1612-2/+466
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9855 0039d316-1c4b-4281-b951-d872f2087c98
* Platform cleanup in autocomplete unit tests.phajdan.jr@chromium.org2009-02-162-43/+43
| | | | | | Review URL: http://codereview.chromium.org/21353 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9853 0039d316-1c4b-4281-b951-d872f2087c98
* Register some more prefs on startup, now that their modules work.evan@chromium.org2009-02-161-2/+2
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9850 0039d316-1c4b-4281-b951-d872f2087c98
* Register PasswordManager prefs for Mac and Linux.evanm@google.com2009-02-161-2/+2
| | | | | | | | Review URL: http://codereview.chromium.org/20392 Patch from Craig Schlenter <craig.schlenter@gmail.com>. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9849 0039d316-1c4b-4281-b951-d872f2087c98
* Make browser_shudown.cc compile on Posix. This is r9835 with a fix for the ↵jhawkins@chromium.org2009-02-162-12/+17
| | | | | | | | mac build. Review URL: http://codereview.chromium.org/20393 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9848 0039d316-1c4b-4281-b951-d872f2087c98
* Rollback r9835 and r9837: Mac build broken.mal@chromium.org2009-02-152-17/+12
| | | | | | | | | | | | | | r9835: Make browser_shutdown.cc compile on Posix. Review URL: http://codereview.chromium.org/20384 r9837: Fix the mac build. Add a stubbed ResourceBundle::CleanupSharedInstance. Review URL: http://codereview.chromium.org/20387 TBR= jhawkins Review URL: http://codereview.chromium.org/21385 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9840 0039d316-1c4b-4281-b951-d872f2087c98
* Make browser_shutdown.cc compile on Posix.jhawkins@chromium.org2009-02-152-12/+17
| | | | | | Review URL: http://codereview.chromium.org/20384 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9835 0039d316-1c4b-4281-b951-d872f2087c98
* Make password_manager.cc compile on Posix.jhawkins@chromium.org2009-02-154-12/+5
| | | | | | Review URL: http://codereview.chromium.org/20383 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9833 0039d316-1c4b-4281-b951-d872f2087c98
* Make browser_url_handler.cc compile on Posix.jhawkins@chromium.org2009-02-154-9/+9
| | | | | | Review URL: http://codereview.chromium.org/21380 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9831 0039d316-1c4b-4281-b951-d872f2087c98
* Clean up some includes in sessions/ directory.estade@chromium.org2009-02-153-13/+2
| | | | | | Review URL: http://codereview.chromium.org/21379 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9830 0039d316-1c4b-4281-b951-d872f2087c98
* Use the ALLOW_THIS_IN_INITIALIZER_LIST instead of a pragma.jhawkins@chromium.org2009-02-141-4/+1
| | | | | | | R=dank Review URL: http://codereview.chromium.org/21378 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9829 0039d316-1c4b-4281-b951-d872f2087c98
* Make base_session_service.cc compile on Posix.jhawkins@chromium.org2009-02-146-32/+13
| | | | | | Review URL: http://codereview.chromium.org/21377 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9828 0039d316-1c4b-4281-b951-d872f2087c98
* Reverting r9823 (http://codereview.chromium.org/16207) because dkegel@google.com2009-02-142-5/+20
| | | | | | | | | | | | | | | | | | | | | 1) the Interactive Tests (dbg) buildbot needs the SSL cert installed 2) the same buildbot showed a refcounting problem, e.g. FATAL:ref_counted.cc(22)] Check failed: in_dtor_. RefCounted object deleted without calling Release() c:\b\slave\chromium-dbg-builder\build\src\chrome\browser\views\find_bar_win_interactive_uitest.cc(57): error: Value of: NULL != server.get() Actual: false Expected: true [ FAILED ] FindInPageTest.CrashEscHandlers (2109 ms) 3) the Webkit Linux buildbot failed four tests redirect302-frames.html cross-frame-access-protocol-explicit-domain.html cross-frame-access-protocol.html origin-header-for-https.html I'm leaving the tcp_pinger files in for the moment, they shouldn't hurt anything. Review URL: http://codereview.chromium.org/23028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9827 0039d316-1c4b-4281-b951-d872f2087c98
* Make session_restore.cc compile on Posix.jhawkins@chromium.org2009-02-144-5/+9
| | | | | | Review URL: http://codereview.chromium.org/21376 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9826 0039d316-1c4b-4281-b951-d872f2087c98
* Rollback my change that seems to break some tests.hclam@chromium.org2009-02-142-89/+69
| | | | | | | | TBR Review URL: http://codereview.chromium.org/21375 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9825 0039d316-1c4b-4281-b951-d872f2087c98
* Add render view id to AudioRendererHosthclam@chromium.org2009-02-142-69/+89
| | | | | | | | | | | | | | AudioRendererHost were assigning ids in the browser process, that means CreateStream has to be done in a synchronous IPC call. To avoid that we allow renderer processes to provide the stream id when they do CreateStrea. Then to identify a IPCAudioSource inside AudioRendererHost we need a tuple of (render_view_id, stream_id). By doing this we can create stream asynchronously just like BeginRequest in ResourceDispatcherHost. Review URL: http://codereview.chromium.org/21319 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9824 0039d316-1c4b-4281-b951-d872f2087c98
* ssl_client_socket_unittest.cc: launch local server with TestServerLauncher dkegel@google.com2009-02-142-20/+5
| | | | | | | | | | | | | | | | | | | | | | rather than use bugs.webkit.org, fixes TODO(darin) Add tests with bad server certs ssl_client_socket_nss.cc: fix bugs revealed by new tests tcp_pinger.cc: helper class to do synchronous connect from tests. Has to work inside ui tests where one can't use TestCompletionCallback. ssl_test_util: renamed class TestServerLauncher, added Start/Stop methods. Make part of net.lib to work around link error in test_shell_tests. url_request_unittest.h: use TestServerLauncher to manage server. SSL client tests disabled for now on Mac. BUG=7114 Review URL: http://codereview.chromium.org/16207 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9823 0039d316-1c4b-4281-b951-d872f2087c98
* Add early-injection capability to user scripts.aa@chromium.org2009-02-143-0/+37
| | | | | | Review URL: http://codereview.chromium.org/19624 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9822 0039d316-1c4b-4281-b951-d872f2087c98
* Add chrome-extension to the list of "web-safe" schemes foraa@chromium.org2009-02-142-0/+3
| | | | | | | | | resource loading. This makes web pages able to refer to resources inside extensions. Review URL: http://codereview.chromium.org/20371 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9821 0039d316-1c4b-4281-b951-d872f2087c98