| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_STARTUP_STARTUP_BROWSER_CREATOR_IMPL_H_ | 5 #ifndef CHROME_BROWSER_UI_STARTUP_STARTUP_BROWSER_CREATOR_IMPL_H_ |
| 6 #define CHROME_BROWSER_UI_STARTUP_STARTUP_BROWSER_CREATOR_IMPL_H_ | 6 #define CHROME_BROWSER_UI_STARTUP_STARTUP_BROWSER_CREATOR_IMPL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 Browser* browser, | 144 Browser* browser, |
| 145 chrome::startup::IsProcessStartup is_process_startup); | 145 chrome::startup::IsProcessStartup is_process_startup); |
| 146 | 146 |
| 147 // Adds additional startup URLs to the specified vector. | 147 // Adds additional startup URLs to the specified vector. |
| 148 void AddStartupURLs(std::vector<GURL>* startup_urls) const; | 148 void AddStartupURLs(std::vector<GURL>* startup_urls) const; |
| 149 | 149 |
| 150 // Initializes |welcome_run_type_| for this launch. Also persists state to | 150 // Initializes |welcome_run_type_| for this launch. Also persists state to |
| 151 // suppress injecting the welcome page for future launches. | 151 // suppress injecting the welcome page for future launches. |
| 152 void InitializeWelcomeRunType(const std::vector<GURL>& urls_to_open); | 152 void InitializeWelcomeRunType(const std::vector<GURL>& urls_to_open); |
| 153 | 153 |
| 154 // Record Rappor metrics on startup URLs. |
| 155 void RecordRapporOnStartupURLs(const std::vector<GURL>& urls_to_open); |
| 156 |
| 154 const base::FilePath cur_dir_; | 157 const base::FilePath cur_dir_; |
| 155 const base::CommandLine& command_line_; | 158 const base::CommandLine& command_line_; |
| 156 Profile* profile_; | 159 Profile* profile_; |
| 157 StartupBrowserCreator* browser_creator_; | 160 StartupBrowserCreator* browser_creator_; |
| 158 bool is_first_run_; | 161 bool is_first_run_; |
| 159 WelcomeRunType welcome_run_type_; | 162 WelcomeRunType welcome_run_type_; |
| 160 DISALLOW_COPY_AND_ASSIGN(StartupBrowserCreatorImpl); | 163 DISALLOW_COPY_AND_ASSIGN(StartupBrowserCreatorImpl); |
| 161 }; | 164 }; |
| 162 | 165 |
| 163 #endif // CHROME_BROWSER_UI_STARTUP_STARTUP_BROWSER_CREATOR_IMPL_H_ | 166 #endif // CHROME_BROWSER_UI_STARTUP_STARTUP_BROWSER_CREATOR_IMPL_H_ |
| OLD | NEW |