Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(301)

Unified Diff: chrome/browser/first_run.h

Issue 1077007: Add the option of importing bookmarks from file to first run.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/first_run.h
===================================================================
--- chrome/browser/first_run.h (revision 41958)
+++ chrome/browser/first_run.h (working copy)
@@ -45,10 +45,9 @@
// Creates the quick launch shortcut to chrome for the current user. Returns
// false if it fails. It will overwrite the shortcut if it exists.
static bool CreateChromeQuickLaunchShortcut();
- // Import browser items in this process. The browser and the items to
- // import are encoded int the command line. This function is paired with
- // FirstRun::ImportSettings(). This function might or might not show
- // a visible UI depending on the cmdline parameters.
+ // Import bookmarks and browser items in this process. This function is
+ // paired with FirstRun::ImportSettings(). This function might or might not
+ // show a visible UI depending on the cmdline parameters.
static int ImportNow(Profile* profile, const CommandLine& cmdline);
#endif // OS_WIN
@@ -100,6 +99,14 @@
static bool SetShowWelcomePagePref();
private:
+#if defined(OS_WIN)
+ // Import bookmarks from an html file. The path to the file is provided in
+ // the command line.
+ static int ImportFromFile(Profile* profile, const CommandLine& cmdline);
+ // Import browser items in this process. The browser and the items to
+ // import are encoded int the command line.
+ static int ImportFromBrowser(Profile* profile, const CommandLine& cmdline);
+#endif // OS_WIN
// This class is for scoping purposes.
DISALLOW_IMPLICIT_CONSTRUCTORS(FirstRun);
};

Powered by Google App Engine
This is Rietveld 408576698