OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/autofill/autocheckout_bubble_controller.h" | 5 #include "chrome/browser/ui/autofill/autocheckout_bubble_controller.h" |
6 | 6 |
7 #include "chrome/browser/autofill/autofill_metrics.h" | 7 #include "components/autofill/browser/autofill_metrics.h" |
8 #include "grit/generated_resources.h" | 8 #include "grit/generated_resources.h" |
9 #include "ui/base/l10n/l10n_util.h" | 9 #include "ui/base/l10n/l10n_util.h" |
10 #include "ui/gfx/rect_conversions.h" | 10 #include "ui/gfx/rect_conversions.h" |
11 | 11 |
12 namespace autofill { | 12 namespace autofill { |
13 | 13 |
14 AutocheckoutBubbleController::AutocheckoutBubbleController( | 14 AutocheckoutBubbleController::AutocheckoutBubbleController( |
15 const gfx::RectF& anchor_rect, | 15 const gfx::RectF& anchor_rect, |
16 const base::Closure& callback) | 16 const base::Closure& callback) |
17 : anchor_rect_(gfx::ToEnclosingRect(anchor_rect)), | 17 : anchor_rect_(gfx::ToEnclosingRect(anchor_rect)), |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 AutofillMetrics::BUBBLE_IGNORED); | 58 AutofillMetrics::BUBBLE_IGNORED); |
59 } | 59 } |
60 } | 60 } |
61 | 61 |
62 void AutocheckoutBubbleController::set_metric_logger( | 62 void AutocheckoutBubbleController::set_metric_logger( |
63 AutofillMetrics* metric_logger) { | 63 AutofillMetrics* metric_logger) { |
64 metric_logger_.reset(metric_logger); | 64 metric_logger_.reset(metric_logger); |
65 } | 65 } |
66 | 66 |
67 } // namespace autofill | 67 } // namespace autofill |
OLD | NEW |