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

Side by Side Diff: chrome/browser/ui/browser_init.h

Issue 8969024: Make sure the Autolaunch infobar... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_UI_BROWSER_INIT_H_ 5 #ifndef CHROME_BROWSER_UI_BROWSER_INIT_H_
6 #define CHROME_BROWSER_UI_BROWSER_INIT_H_ 6 #define CHROME_BROWSER_UI_BROWSER_INIT_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 // about it. 220 // about it.
221 void AddObsoleteSystemInfoBarIfNecessary(TabContentsWrapper* tab); 221 void AddObsoleteSystemInfoBarIfNecessary(TabContentsWrapper* tab);
222 222
223 // Adds additional startup URLs to the specified vector. 223 // Adds additional startup URLs to the specified vector.
224 void AddStartupURLs(std::vector<GURL>* startup_urls) const; 224 void AddStartupURLs(std::vector<GURL>* startup_urls) const;
225 225
226 // Checks whether Chrome is still the default browser (unless the user 226 // Checks whether Chrome is still the default browser (unless the user
227 // previously instructed not to do so) and warns the user if it is not. 227 // previously instructed not to do so) and warns the user if it is not.
228 void CheckDefaultBrowser(Profile* profile); 228 void CheckDefaultBrowser(Profile* profile);
229 229
230 // Checks whether Chrome was auto-started at login. 230 // Checks whether Chrome should show the 'Chrome was auto-started' infobar.
231 void CheckIfAutoLaunched(Profile* profile); 231 // Returns true if so.
232 bool CheckIfAutoLaunched(Profile* profile);
232 233
233 const FilePath cur_dir_; 234 const FilePath cur_dir_;
234 const CommandLine& command_line_; 235 const CommandLine& command_line_;
235 Profile* profile_; 236 Profile* profile_;
236 BrowserInit* browser_init_; 237 BrowserInit* browser_init_;
237 bool is_first_run_; 238 bool is_first_run_;
238 DISALLOW_COPY_AND_ASSIGN(LaunchWithProfile); 239 DISALLOW_COPY_AND_ASSIGN(LaunchWithProfile);
239 }; 240 };
240 241
241 private: 242 private:
(...skipping 16 matching lines...) Expand all
258 Profile* profile, 259 Profile* profile,
259 Profile::CreateStatus status); 260 Profile::CreateStatus status);
260 261
261 // Additional tabs to open during first run. 262 // Additional tabs to open during first run.
262 std::vector<GURL> first_run_tabs_; 263 std::vector<GURL> first_run_tabs_;
263 264
264 DISALLOW_COPY_AND_ASSIGN(BrowserInit); 265 DISALLOW_COPY_AND_ASSIGN(BrowserInit);
265 }; 266 };
266 267
267 #endif // CHROME_BROWSER_UI_BROWSER_INIT_H_ 268 #endif // CHROME_BROWSER_UI_BROWSER_INIT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698