| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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/extensions/extension_message_bubble_controller.h" | 5 #include "chrome/browser/extensions/extension_message_bubble_controller.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/metrics/histogram.h" | 8 #include "base/metrics/histogram.h" |
| 9 #include "base/strings/string_number_conversions.h" | 9 #include "base/strings/string_number_conversions.h" |
| 10 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 ExtensionMessageBubbleController::Delegate::GetProfileSet() { | 76 ExtensionMessageBubbleController::Delegate::GetProfileSet() { |
| 77 return nullptr; | 77 return nullptr; |
| 78 } | 78 } |
| 79 | 79 |
| 80 std::string | 80 std::string |
| 81 ExtensionMessageBubbleController::Delegate::get_acknowledged_flag_pref_name() | 81 ExtensionMessageBubbleController::Delegate::get_acknowledged_flag_pref_name() |
| 82 const { | 82 const { |
| 83 return acknowledged_pref_name_; | 83 return acknowledged_pref_name_; |
| 84 } | 84 } |
| 85 | 85 |
| 86 void | 86 void ExtensionMessageBubbleController::Delegate:: |
| 87 ExtensionMessageBubbleController::Delegate::set_acknowledged_flag_pref_name( | 87 set_acknowledged_flag_pref_name(const std::string& pref_name) { |
| 88 std::string pref_name) { | |
| 89 acknowledged_pref_name_ = pref_name; | 88 acknowledged_pref_name_ = pref_name; |
| 90 } | 89 } |
| 91 | 90 |
| 92 //////////////////////////////////////////////////////////////////////////////// | 91 //////////////////////////////////////////////////////////////////////////////// |
| 93 // ExtensionMessageBubbleController | 92 // ExtensionMessageBubbleController |
| 94 | 93 |
| 95 ExtensionMessageBubbleController::ExtensionMessageBubbleController( | 94 ExtensionMessageBubbleController::ExtensionMessageBubbleController( |
| 96 Delegate* delegate, | 95 Delegate* delegate, |
| 97 Browser* browser) | 96 Browser* browser) |
| 98 : browser_(browser), | 97 : browser_(browser), |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 return &extension_list_; | 248 return &extension_list_; |
| 250 } | 249 } |
| 251 | 250 |
| 252 void ExtensionMessageBubbleController::OnClose() { | 251 void ExtensionMessageBubbleController::OnClose() { |
| 253 AcknowledgeExtensions(); | 252 AcknowledgeExtensions(); |
| 254 if (did_highlight_) | 253 if (did_highlight_) |
| 255 ToolbarActionsModel::Get(profile())->StopHighlighting(); | 254 ToolbarActionsModel::Get(profile())->StopHighlighting(); |
| 256 } | 255 } |
| 257 | 256 |
| 258 } // namespace extensions | 257 } // namespace extensions |
| OLD | NEW |