OLD | NEW |
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 #include "chrome/browser/ui/gtk/instant_confirm_dialog_gtk.h" | 5 #include "chrome/browser/ui/gtk/instant_confirm_dialog_gtk.h" |
6 | 6 |
7 #include <gtk/gtk.h> | 7 #include <gtk/gtk.h> |
8 | 8 |
9 #include "chrome/browser/instant/instant_confirm_dialog.h" | 9 #include "chrome/browser/instant/instant_confirm_dialog.h" |
10 #include "chrome/browser/instant/instant_controller.h" | 10 #include "chrome/browser/instant/instant_controller.h" |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 InstantController::Enable(profile_); | 69 InstantController::Enable(profile_); |
70 | 70 |
71 delete this; | 71 delete this; |
72 } | 72 } |
73 | 73 |
74 void InstantConfirmDialogGtk::OnLinkButtonClicked(GtkWidget* button) { | 74 void InstantConfirmDialogGtk::OnLinkButtonClicked(GtkWidget* button) { |
75 // We open a new browser window so the Options dialog doesn't get lost behind | 75 // We open a new browser window so the Options dialog doesn't get lost behind |
76 // other windows. | 76 // other windows. |
77 Browser* browser = Browser::Create(profile_); | 77 Browser* browser = Browser::Create(profile_); |
78 browser->AddSelectedTabWithURL(browser::InstantLearnMoreURL(), | 78 browser->AddSelectedTabWithURL(browser::InstantLearnMoreURL(), |
79 PageTransition::LINK); | 79 content::PAGE_TRANSITION_LINK); |
80 browser->window()->Show(); | 80 browser->window()->Show(); |
81 } | 81 } |
OLD | NEW |