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

Unified Diff: chrome/browser/tabs/pinned_tab_codec.h

Issue 10384106: Extract StartupTabs and startup types from StartupBrowserCreator. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 7 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/tabs/pinned_tab_codec.h
===================================================================
--- chrome/browser/tabs/pinned_tab_codec.h (revision 136582)
+++ chrome/browser/tabs/pinned_tab_codec.h (working copy)
@@ -8,7 +8,7 @@
#include <vector>
-#include "chrome/browser/ui/startup/startup_browser_creator.h"
+#include "chrome/browser/ui/startup/startup_tab.h"
#include "googleurl/src/gurl.h"
namespace base {
@@ -27,8 +27,6 @@
// dictionary describing the entry.
class PinnedTabCodec {
public:
- typedef std::vector<StartupBrowserCreator::LaunchWithProfile::Tab> Tabs;
-
// Registers the preference used by this class.
static void RegisterUserPrefs(PrefService* prefs);
@@ -36,11 +34,11 @@
static void WritePinnedTabs(Profile* profile);
// Sets the preferences state from the specified tab list.
- static void WritePinnedTabs(Profile* profile, const Tabs& tabs);
+ static void WritePinnedTabs(Profile* profile, const StartupTabs& tabs);
// Reads and returns the set of pinned tabs to restore from preferences.
- static Tabs ReadPinnedTabs(Profile* profile);
- static Tabs ReadPinnedTabs(const base::Value* value);
+ static StartupTabs ReadPinnedTabs(Profile* profile);
+ static StartupTabs ReadPinnedTabs(const base::Value* value);
private:
PinnedTabCodec();
« no previous file with comments | « chrome/browser/protector/session_startup_change_unittest.cc ('k') | chrome/browser/tabs/pinned_tab_codec.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698