summaryrefslogtreecommitdiffstats
path: root/chrome/browser/first_run.cc
Commit message (Collapse)AuthorAgeFilesLines
* Port the option to import bookmarks from a file to Linuxevan@chromium.org2010-04-011-0/+74
| | | | | | | | | | | | | | | | | | | | | | | - Call ImportNow from browser_main.cc - Move necessary functions and a class from first_run_win.cc to first_run.cc and update first_run.h accordingly. - Add some #defines for different OSes and some TODO(port) comments. These changes will allow the use of the --import-from-file option to import bookmarks from a file at first run. I have built and tested this on Linux and Windows. BUG=32728 TEST=run with --import-from-file Patch from Brian G. Merrell <bgmerrell@gmail.com> Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=43277 Review URL: http://codereview.chromium.org/1515004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43294 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 43277 - Port the option to import bookmarks from a file to Linuxarv@chromium.org2010-03-311-74/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | Call ImportNow from browser_main.cc Move necessary functions and a class from first_run_win.cc to first_run.cc and update first_run.h accordingly. Add some #defines for different OSes and some TODO(port) comments. These changes will allow the use of the importfromfile option to import bookmarks from a file at first run. I have built and tested this on Linux and Windows. BUG=32728 TEST=run with importfromfile Patch from Brian G. Merrell <bgmerrell@gmail.com> Review URL: http://codereview.chromium.org/1515004 TBR=evan@chromium.org This broke BookmarkBarGtkBrowserTest.ClickOnFloatingTest Review URL: http://codereview.chromium.org/1591005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43285 0039d316-1c4b-4281-b951-d872f2087c98
* Port the option to import bookmarks from a file to Linuxevan@chromium.org2010-03-311-0/+74
| | | | | | | | | | | | | | | | | | | | | - Call ImportNow from browser_main.cc - Move necessary functions and a class from first_run_win.cc to first_run.cc and update first_run.h accordingly. - Add some #defines for different OSes and some TODO(port) comments. These changes will allow the use of the --import-from-file option to import bookmarks from a file at first run. I have built and tested this on Linux and Windows. BUG=32728 TEST=run with --import-from-file Patch from Brian G. Merrell <bgmerrell@gmail.com> Review URL: http://codereview.chromium.org/1515004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43277 0039d316-1c4b-4281-b951-d872f2087c98
* Reenable first run dialog on Mac by commenting out MasterPreferences reading ↵mirandac@chromium.org2010-03-141-1/+1
| | | | | | | | | | | stuff, which is not yet available for OS X. While this is not commented out, first run dialog will *always* be bypassed. BUG= none TEST= you can get the 1st run dialog on Mac again. Review URL: http://codereview.chromium.org/929001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41551 0039d316-1c4b-4281-b951-d872f2087c98
* Allow the use of the master_preferences file in Linux.tony@chromium.org2010-03-101-0/+19
| | | | | | | | | | | | | | | Also refactor FirstRunTabs to use GURL instead of wstring. BUG=none TEST=Add master_preferences file to directory containing the chrome binary and execute chrome with the --first-run option. Original patch by bgmerrell@gmail.com at http://codereview.chromium.org/551160 Review URL: http://codereview.chromium.org/796001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41131 0039d316-1c4b-4281-b951-d872f2087c98
* Move pref_{member,service} and important_file_writer from chrome/commonphajdan.jr@chromium.org2010-02-191-1/+1
| | | | | | | | | | | | | to chrome/browser. This is a part of an effort to remove bad dependency of chrome/common on chrome/browser. TEST=unit_tests and ui_tests, just moving code BUG=none Review URL: http://codereview.chromium.org/621004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39428 0039d316-1c4b-4281-b951-d872f2087c98
* Remove IsPrefRegistered function from PrefService API and fix the callers totony@chromium.org2009-12-071-2/+2
| | | | | | | | | | | | | | call FindPreference directly. BUG=None TEST=compiles and passes existing tests Original patch by Thiago Farina <thiago.farina@gmail.com> at http://codereview.chromium.org/460117/show Review URL: http://codereview.chromium.org/463044 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34010 0039d316-1c4b-4281-b951-d872f2087c98
* Remove old migration code, as users should have been migrated by now.evan@chromium.org2009-10-221-9/+1
| | | | | | | | BUG=24450 Review URL: http://codereview.chromium.org/292055 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29810 0039d316-1c4b-4281-b951-d872f2087c98
* linux/mac: use "First Run", not "First Run Dev"evan@chromium.org2009-10-091-8/+7
| | | | | | | | | | | | This should've been done back when we finished the First Run dialogs, but better late than never. BUG=24397 TEST=Run Chrome on an old profile; you should not get a first run dialog if you've already clicked through and your user data dir should now contain a "First Run" file and no "First Run Dev" file. Run Chrome on a new profile; First Run should still work as before. Review URL: http://codereview.chromium.org/273009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28592 0039d316-1c4b-4281-b951-d872f2087c98
* Make Mac first run store sentinel in Profile directory.jeremy@chromium.org2009-08-191-3/+0
| | | | | | | | | | | | * Added code to migrate from previous defaults-based first run. * Renamed linux_guid -> posix_guid. BUG=19260 TEST=Open current official release and go through first run UI, then open a release compiled with this patch. First run UI should not be displayed again. TEST=First Run UI should only be displayed once on first run and not anew on each launch. Review URL: http://codereview.chromium.org/173020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23686 0039d316-1c4b-4281-b951-d872f2087c98
* Linux: Add first run search bubble.kuchhal@chromium.org2009-07-141-0/+25
| | | | | | Review URL: http://codereview.chromium.org/149501 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20625 0039d316-1c4b-4281-b951-d872f2087c98
* Some code had been removed from FirstRun::IsChromeFirstRun() so that it may ↵jcampan@chromium.org2009-07-081-2/+12
| | | | | | | | return true then false when later invoked.This caused a bug where we would show the info-bar warning that Chromium is not the default browser after the first run.This patch resurrects that code and changes the first run UI, as it was relying on that behavior.BUG=http://crbug.com/15833TEST=Make IE or Firefox your default browser. Open Chromium so it shows the 1st run UI. Unselect the "make chromium my default browser" button, then press start. When Chromium shows up, there should be no info-bar warning you Chromium is not your default browser. Also test that the first run UI still works as expected. Review URL: http://codereview.chromium.org/155168 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20151 0039d316-1c4b-4281-b951-d872f2087c98
* FixIt: Remove first run dead code.kuchhal@chromium.org2009-06-301-12/+2
| | | | | | Review URL: http://codereview.chromium.org/151089 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19674 0039d316-1c4b-4281-b951-d872f2087c98
* Exit Chrome and show FRUI again on the next run, if user clicks on Cancel.kuchhal@chromium.org2009-06-171-1/+1
| | | | | | | | BUG=10825 Review URL: http://codereview.chromium.org/118528 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18624 0039d316-1c4b-4281-b951-d872f2087c98
* linux: remove the word "Alpha" from all UI.evan@chromium.org2009-05-281-2/+2
| | | | | | | | It mostly confuses the press. Review URL: http://codereview.chromium.org/113978 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17137 0039d316-1c4b-4281-b951-d872f2087c98
* linux: Implement a first run dialog.evan@chromium.org2009-05-221-5/+4
| | | | | | | | BUG=11971 Review URL: http://codereview.chromium.org/115722 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16805 0039d316-1c4b-4281-b951-d872f2087c98
* Fix mac.evan@chromium.org2009-05-221-0/+3
| | | | | | TBR=eglaysher git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16787 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor the FirstRun code into Windows-specific and portable.evan@chromium.org2009-05-221-611/+31
| | | | | | | | | BUG=11971 TEST=fresh install of Chrome should still bring up the first run dialog Review URL: http://codereview.chromium.org/115689 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16783 0039d316-1c4b-4281-b951-d872f2087c98
* Commit for Miranda. glen@chromium.org2009-05-191-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | http://codereview.chromium.org/115265 Original text: """ This addresses 3 of the 4 issues described in Issue 9223: 1) Creates a new streamlined bubble with less text. 2) Incorporates a close [x]. 3) Driven by configuration option in master_preferences file; this alternate bubble will be used only if "oem_bubble": true is set. Requested longer linger time feature will involve mucking with the focus manager; this change will be uploaded separately. BUG=9223 TEST=Add "oem_bubble": true to master_preferences file. Run chrome with --first-run option. Alternate, smaller OEM bubble should appear over the Chrome browser in the place of the standard first-run bubble. """ git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16438 0039d316-1c4b-4281-b951-d872f2087c98
* Revert the first run bubble change because of Mac/Linux failures.glen@chromium.org2009-05-161-15/+0
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16245 0039d316-1c4b-4281-b951-d872f2087c98
* Recommit for MirandaC of Smaller alternate first run bubble. ↵glen@chromium.org2009-05-161-0/+15
| | | | | | http://codereview.chromium.org/115265 BUG=9223 TBR=mirandac git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16243 0039d316-1c4b-4281-b951-d872f2087c98
* rollback of r 162411glen@chromium.org2009-05-161-15/+0
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16242 0039d316-1c4b-4281-b951-d872f2087c98
* Commit for MirandaC of Smaller alternate first run bubble. ↵glen@chromium.org2009-05-161-0/+15
| | | | | | | | | | | http://codereview.chromium.org/115265 BUG=9223 TBR=mirandac Review URL: http://codereview.chromium.org/113504 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16241 0039d316-1c4b-4281-b951-d872f2087c98
* Create app_switches and remove a dep.beng@google.com2009-05-151-0/+1
| | | | | | | | | | Move resource.h to app. http://crbug.com/11387 Review URL: http://codereview.chromium.org/113435 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16139 0039d316-1c4b-4281-b951-d872f2087c98
* Remove even more ATL dependencies.maruel@chromium.org2009-05-141-2/+2
| | | | | | Review URL: http://codereview.chromium.org/115309 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16088 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 15965. I wasn't supposed to check that in since it still doesn't ↵maruel@chromium.org2009-05-131-2/+2
| | | | | | | | | compile on linux and mac! TBR=sky Review URL: http://codereview.chromium.org/113351 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15967 0039d316-1c4b-4281-b951-d872f2087c98
* Remove even more ATL dependencies.maruel@chromium.org2009-05-131-2/+2
| | | | | | Review URL: http://codereview.chromium.org/115309 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15965 0039d316-1c4b-4281-b951-d872f2087c98
* Add customized first run tabscpu@google.com2009-05-091-4/+7
| | | | | | | | | | | | | - More refactor of BrowserInit and LaunchWithProfile - hardcoded magic names : new_tab_page and welcome_page BUG=9706 TEST=see the bug for detailed instructions. Review URL: http://codereview.chromium.org/115139 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15701 0039d316-1c4b-4281-b951-d872f2087c98
* Move src/chrome/views to src/views. RS=darin http://crbug.com/11387ben@chromium.org2009-05-081-5/+2
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15604 0039d316-1c4b-4281-b951-d872f2087c98
* Adds toplevel app/ directory and moves ResourceBundle into it.ben@chromium.org2009-05-051-1/+1
| | | | | | | | | | | No changes to resource bundle yet, just the move to keep this CL as compact as possible. Adds new vcproj and gyp file for app dir. http://crbug.com/11387 Review URL: http://codereview.chromium.org/100354 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15264 0039d316-1c4b-4281-b951-d872f2087c98
* Fix multiple instances of first run dialog appearing when Chrome is started ↵robertshield@google.com2009-05-031-7/+23
| | | | | | | | | | again while a first run dialog is visible. Also cause the original first run dialog to come to foreground. BUG=http://crbug.com/10765 Review URL: http://codereview.chromium.org/99281 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15170 0039d316-1c4b-4281-b951-d872f2087c98
* Relanding the following CL (it was breaking the UI tests because ajcampan@chromium.org2009-05-021-3/+10
| | | | | | | | | | | | | | | | | | | | | | | | | NOTREACHED() would be triggered in that case). If Chrome is not the default browser, tell the user, unless: - it is the first run - the user already said not to warn him/her about it - an info-bar is already showing. BUG=9049 TEST=Run a new install of chrome, proceed through the first run flow, don't make Chrome your default browser. No info-bar warning about Chrome not being the default browser should be shown. Restart Chrome, such an info-bar should be shown. Click the x on the info-bar to close it. Restart Chrome. The info-bar should be shown. Select "Set as default". Restart Chrome, the info-bar should not be shown. Start IE, make it your default browser (Tools menu, 'Internet option', Programs tab). Restart Chrome, it should show the default browser info-bar. Select "Don't ask me again". Restart Chrome, the info-bar should not be shown. Review URL: http://codereview.chromium.org/100287 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15137 0039d316-1c4b-4281-b951-d872f2087c98
* Reverting 15115, it sadly breaks the ui tests.jcampan@chromium.org2009-05-011-10/+3
| | | | | | | TBR=beng Review URL: http://codereview.chromium.org/100285 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15122 0039d316-1c4b-4281-b951-d872f2087c98
* If Chrome is not the default browser, tell the user, unless:jcampan@chromium.org2009-05-011-3/+10
| | | | | | | | | | | | | | | | | | | | | | - it is the first run - the user already said not to warn him/her about it - an info-bar is already showing. BUG=9049 TEST=Run a new install of chrome, proceed through the first run flow, don't make Chrome your default browser. No info-bar warning about Chrome not being the default browser should be shown. Restart Chrome, such an info-bar should be shown. Click the x on the info-bar to close it. Restart Chrome. The info-bar should be shown. Select "Set as default". Restart Chrome, the info-bar should not be shown. Start IE, make it your default browser (Tools menu, 'Internet option', Programs tab). Restart Chrome, it should show the default browser info-bar. Select "Don't ask me again". Restart Chrome, the info-bar should not be shown. Review URL: http://codereview.chromium.org/99301 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15115 0039d316-1c4b-4281-b951-d872f2087c98
* Add two new master preferences (import_bookmarks and ↵kuchhal@chromium.org2009-04-301-0/+7
| | | | | | | | | | | make_default_browser_for_user). make_default_browser_for_user will make Chrome default on the first run of Chrome instead of installer doing it. This will allow Chrome to import user profile data from current default browser, before making Chrome default. BUG=9708,10912 Review URL: http://codereview.chromium.org/99165 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14988 0039d316-1c4b-4281-b951-d872f2087c98
* Fix a DCHECK hit from RefCountedBase class.kuchhal@chromium.org2009-04-291-2/+2
| | | | | | | Review URL: http://codereview.chromium.org/100170 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14894 0039d316-1c4b-4281-b951-d872f2087c98
* Importer should import browser data from the browser that user selected.kuchhal@chromium.org2009-04-231-10/+13
| | | | | | | | | BUG=9710 Review URL: http://codereview.chromium.org/93039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14313 0039d316-1c4b-4281-b951-d872f2087c98
* Make the importer respect the user selected languge. On install the ↵sverrir@google.com2009-04-151-11/+13
| | | | | | | | | | | | language can either be set by a command line argument or a registry key (set by Omaha). The problem with the registry key approach is that the language is put into the local state but its not persisted before the importer process is launched and that process is therefore oblivious to the language and uses the default one. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13779 0039d316-1c4b-4281-b951-d872f2087c98
* Wire the alternate desktop shortcut textcpu@google.com2009-03-251-3/+3
| | | | | | | | | | | | | - second set of changes, one small one to come - adds a parameter on the desktop shortcut creator function that indicate the text to use - plumbs the master preference and the command line parameter BUG=1522969 Review URL: http://codereview.chromium.org/42586 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12499 0039d316-1c4b-4281-b951-d872f2087c98
* Reuse the eula terms from the chrome resourcescpu@google.com2009-03-191-14/+38
| | | | | | | | | | | - that outta reduce the fat that setup.exe gained - this is the chrome side of the fix BUG=8894 Review URL: http://codereview.chromium.org/48114 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12046 0039d316-1c4b-4281-b951-d872f2087c98
* Move windowing related objects into chrome/views/window subdir.ben@chromium.org2009-03-171-1/+1
| | | | | | | | TBR=sky Review URL: http://codereview.chromium.org/42272 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11819 0039d316-1c4b-4281-b951-d872f2087c98
* fix bustage - moved fileben@chromium.org2009-03-171-1/+1
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11817 0039d316-1c4b-4281-b951-d872f2087c98
* Fixes CRLF and trailing white spaces.maruel@chromium.org2009-03-051-3/+3
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10982 0039d316-1c4b-4281-b951-d872f2087c98
* Move chrome/apps/result_codes.h to chrome/common/result_codes.hthestig@chromium.org2009-03-031-1/+1
| | | | | | Review URL: http://codereview.chromium.org/28279 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10761 0039d316-1c4b-4281-b951-d872f2087c98
* Wire chrome shortcuts tooltip (installation)cpu@google.com2009-02-281-1/+4
| | | | | | | | | | | - Not complete since we are waiting for translations - For chromium the tooltip says "Browse the internet" BUG=b/1522969 Review URL: http://codereview.chromium.org/28272 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10666 0039d316-1c4b-4281-b951-d872f2087c98
* Remove the executable bit from a bunch of files that shouldn't have had it.evan@chromium.org2009-02-121-0/+0
| | | | | | | R=tony (looked over my shoulder before I committed) git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9683 0039d316-1c4b-4281-b951-d872f2087c98
* Fixes the EULA dialog to explicitly unset the usagestats flag if the ↵gwilson@google.com2009-02-061-1/+4
| | | | | | | | | | | checkbox is not selected. Before, the dialog would simply not modify the value already set. BUG=7426 R=cpu Review URL: http://codereview.chromium.org/21134 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9336 0039d316-1c4b-4281-b951-d872f2087c98
* Fix a bunch of header includes. I removed some unnecessary headers from abrettw@chromium.org2009-02-011-0/+1
| | | | | | | | variety of places and added ones in other files that were accidentally depending on them. Review URL: http://codereview.chromium.org/19742 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9022 0039d316-1c4b-4281-b951-d872f2087c98
* Modifies LaunchSetupWithParam to properly append the kInstallerDir and ↵gwilson@google.com2009-01-301-2/+2
| | | | | | | | kSetupExe constants to the executable path. Review URL: http://codereview.chromium.org/19493 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8949 0039d316-1c4b-4281-b951-d872f2087c98
* This CL fixes bugs with EULAcpu@google.com2009-01-291-4/+5
| | | | | | | | | | | | | | - The first run import will trigger the eula again : this requires changes in browser_main.cc so the master prefs are not processed again by the importer process - The launch of setup.exe to show the eula was using a path that only works on developer builds this requires relocating a constant from setup_constants to util_constants BUG=1468838 Review URL: http://codereview.chromium.org/19680 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8928 0039d316-1c4b-4281-b951-d872f2087c98