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

Side by Side Diff: chrome/browser/first_run.h

Issue 18248: CommandLine API rework (Closed)
Patch Set: fixes Created 11 years, 11 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/debugger/debugger_contents.cc ('k') | chrome/browser/first_run.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_FIRST_RUN_H_ 5 #ifndef CHROME_BROWSER_FIRST_RUN_H_
6 #define CHROME_BROWSER_FIRST_RUN_H_ 6 #define CHROME_BROWSER_FIRST_RUN_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "chrome/browser/browser_process_impl.h" 10 #include "chrome/browser/browser_process_impl.h"
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 // If the new_chrome.exe exists (placed by the installer then is swapped 98 // If the new_chrome.exe exists (placed by the installer then is swapped
99 // to chrome.exe and the old chrome is renamed to old_chrome.exe. If there 99 // to chrome.exe and the old chrome is renamed to old_chrome.exe. If there
100 // is no new_chrome.exe or the swap fails the return is false; 100 // is no new_chrome.exe or the swap fails the return is false;
101 static bool SwapNewChromeExeIfPresent(); 101 static bool SwapNewChromeExeIfPresent();
102 }; 102 };
103 103
104 // A subclass of BrowserProcessImpl that does not have a GoogleURLTracker 104 // A subclass of BrowserProcessImpl that does not have a GoogleURLTracker
105 // so we don't fetch as we have no IO thread (see bug #1292702). 105 // so we don't fetch as we have no IO thread (see bug #1292702).
106 class FirstRunBrowserProcess : public BrowserProcessImpl { 106 class FirstRunBrowserProcess : public BrowserProcessImpl {
107 public: 107 public:
108 FirstRunBrowserProcess(CommandLine& command_line) 108 FirstRunBrowserProcess(const CommandLine& command_line)
109 : BrowserProcessImpl(command_line) { 109 : BrowserProcessImpl(command_line) {
110 } 110 }
111 virtual ~FirstRunBrowserProcess() { } 111 virtual ~FirstRunBrowserProcess() { }
112 112
113 virtual GoogleURLTracker* google_url_tracker() { return NULL; } 113 virtual GoogleURLTracker* google_url_tracker() { return NULL; }
114 114
115 private: 115 private:
116 DISALLOW_COPY_AND_ASSIGN(FirstRunBrowserProcess); 116 DISALLOW_COPY_AND_ASSIGN(FirstRunBrowserProcess);
117 }; 117 };
118 118
119 // Show the First Run UI to the user, allowing them to create shortcuts for 119 // Show the First Run UI to the user, allowing them to create shortcuts for
120 // the app, import their bookmarks and other data from another browser into 120 // the app, import their bookmarks and other data from another browser into
121 // |profile| and perhaps some other tasks. 121 // |profile| and perhaps some other tasks.
122 void OpenFirstRunDialog(Profile* profile); 122 void OpenFirstRunDialog(Profile* profile);
123 123
124 #endif // CHROME_BROWSER_FIRST_RUN_H_ 124 #endif // CHROME_BROWSER_FIRST_RUN_H_
OLDNEW
« no previous file with comments | « chrome/browser/debugger/debugger_contents.cc ('k') | chrome/browser/first_run.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698