| 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/views/autocomplete/autocomplete_popup_contents_view.
h" | 5 #include "chrome/browser/ui/views/autocomplete/autocomplete_popup_contents_view.
h" |
| 6 | 6 |
| 7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
| 8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
| 9 #include "chrome/browser/autocomplete/autocomplete_popup_model.h" | 9 #include "chrome/browser/autocomplete/autocomplete_popup_model.h" |
| 10 #include "chrome/browser/instant/instant_confirm_dialog.h" | 10 #include "chrome/browser/instant/instant_confirm_dialog.h" |
| (...skipping 686 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 697 } | 697 } |
| 698 | 698 |
| 699 void AutocompletePopupContentsView::UserPressedOptIn(bool opt_in) { | 699 void AutocompletePopupContentsView::UserPressedOptIn(bool opt_in) { |
| 700 delete opt_in_view_; | 700 delete opt_in_view_; |
| 701 opt_in_view_ = NULL; | 701 opt_in_view_ = NULL; |
| 702 PromoCounter* counter = model_->profile()->GetInstantPromoCounter(); | 702 PromoCounter* counter = model_->profile()->GetInstantPromoCounter(); |
| 703 DCHECK(counter); | 703 DCHECK(counter); |
| 704 counter->Hide(); | 704 counter->Hide(); |
| 705 if (opt_in) { | 705 if (opt_in) { |
| 706 browser::ShowInstantConfirmDialogIfNecessary( | 706 browser::ShowInstantConfirmDialogIfNecessary( |
| 707 location_bar_->GetWindow()->GetNativeWindow(), model_->profile()); | 707 location_bar_->GetWidget()->GetNativeWindow(), model_->profile()); |
| 708 } | 708 } |
| 709 UpdatePopupAppearance(); | 709 UpdatePopupAppearance(); |
| 710 } | 710 } |
| OLD | NEW |