Index: chrome/browser/ui/browser.h |
diff --git a/chrome/browser/ui/browser.h b/chrome/browser/ui/browser.h |
index 59da0950995703000b7478c54ec6e1acb1660bc1..cd6244a52a458cbb5b432b05a1942619d9021894 100644 |
--- a/chrome/browser/ui/browser.h |
+++ b/chrome/browser/ui/browser.h |
@@ -156,14 +156,15 @@ class Browser : public TabStripModelObserver, |
}; |
struct CreateParams { |
- explicit CreateParams(Profile* profile); |
- CreateParams(Type type, Profile* profile); |
+ explicit CreateParams(Profile* profile, bool user_gesture); |
+ CreateParams(Type type, Profile* profile, bool user_gesture); |
CreateParams(const CreateParams& other); |
static CreateParams CreateForApp(const std::string& app_name, |
bool trusted_source, |
const gfx::Rect& window_bounds, |
- Profile* profile); |
+ Profile* profile, |
+ bool user_gesture); |
static CreateParams CreateForDevTools(Profile* profile); |
@@ -186,6 +187,12 @@ class Browser : public TabStripModelObserver, |
bool is_session_restore; |
+ // Whether this browser was created by a user gesture. We track this |
+ // specifically for the multi-user case in chromeos where we can place |
+ // windows generated by user gestures differently from ones |
+ // programmatically created. |
+ bool user_gesture; |
+ |
// Supply a custom BrowserWindow implementation, to be used instead of the |
// default. Intended for testing. |
BrowserWindow* window; |