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

Side by Side Diff: chrome/browser/ui/startup/startup_browser_creator_impl.h

Issue 12380047: Allow --app-list to be used in conjunction with --incognito for v1 apps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/ui/startup/startup_browser_creator_impl.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) 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 private: 78 private:
79 FRIEND_TEST_ALL_PREFIXES(BrowserTest, RestorePinnedTabs); 79 FRIEND_TEST_ALL_PREFIXES(BrowserTest, RestorePinnedTabs);
80 FRIEND_TEST_ALL_PREFIXES(BrowserTest, AppIdSwitch); 80 FRIEND_TEST_ALL_PREFIXES(BrowserTest, AppIdSwitch);
81 81
82 // Extracts optional application window size passed in command line. 82 // Extracts optional application window size passed in command line.
83 void ExtractOptionalAppWindowSize(gfx::Rect* bounds); 83 void ExtractOptionalAppWindowSize(gfx::Rect* bounds);
84 84
85 // If the process was launched with the web application command line flags, 85 // If the process was launched with the web application command line flags,
86 // e.g. --app=http://www.google.com/ or --app_id=... return true. 86 // e.g. --app=http://www.google.com/ or --app_id=... return true.
87 // In this case |app_url| or |app_id| are populated if they're non-null. 87 // In this case |app_url| or |app_id| are populated if they're non-null.
88 bool IsAppLaunch(Profile* profile, std::string* app_url, std::string* app_id); 88 bool IsAppLaunch(std::string* app_url, std::string* app_id);
89 89
90 // If IsAppLaunch is true, tries to open an application window. 90 // If IsAppLaunch is true, tries to open an application window.
91 // If the app is specified to start in a tab, or IsAppLaunch is false, 91 // If the app is specified to start in a tab, or IsAppLaunch is false,
92 // returns false to specify default processing. |out_app_contents| is an 92 // returns false to specify default processing. |out_app_contents| is an
93 // optional argument to receive the created WebContents for the app. 93 // optional argument to receive the created WebContents for the app.
94 bool OpenApplicationWindow(Profile* profile, 94 bool OpenApplicationWindow(Profile* profile,
95 content::WebContents** out_app_contents); 95 content::WebContents** out_app_contents);
96 96
97 // If IsAppLaunch is true and the user set a pref indicating that the app 97 // If IsAppLaunch is true and the user set a pref indicating that the app
98 // should open in a tab, do so. 98 // should open in a tab, do so.
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 StartupBrowserCreator* browser_creator_; 157 StartupBrowserCreator* browser_creator_;
158 bool is_first_run_; 158 bool is_first_run_;
159 DISALLOW_COPY_AND_ASSIGN(StartupBrowserCreatorImpl); 159 DISALLOW_COPY_AND_ASSIGN(StartupBrowserCreatorImpl);
160 }; 160 };
161 161
162 // Returns true if |profile| has exited uncleanly and has not been launched 162 // Returns true if |profile| has exited uncleanly and has not been launched
163 // after the unclean exit. 163 // after the unclean exit.
164 bool HasPendingUncleanExit(Profile* profile); 164 bool HasPendingUncleanExit(Profile* profile);
165 165
166 #endif // CHROME_BROWSER_UI_STARTUP_STARTUP_BROWSER_CREATOR_IMPL_H_ 166 #endif // CHROME_BROWSER_UI_STARTUP_STARTUP_BROWSER_CREATOR_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/startup/startup_browser_creator_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698