| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/extensions/extension_toolbar_icon_surfacing_bubble_d
elegate.h" | 5 #include "chrome/browser/ui/extensions/extension_toolbar_icon_surfacing_bubble_d
elegate.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/prefs/pref_service.h" | 8 #include "base/prefs/pref_service.h" |
| 9 #include "base/time/time.h" | 9 #include "base/time/time.h" |
| 10 #include "chrome/browser/extensions/extension_toolbar_model.h" | 10 #include "chrome/browser/extensions/extension_toolbar_model.h" |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 // Record the last time the bubble was shown. | 96 // Record the last time the bubble was shown. |
| 97 profile_->GetPrefs()->SetInt64( | 97 profile_->GetPrefs()->SetInt64( |
| 98 prefs::kToolbarIconSurfacingBubbleLastShowTime, | 98 prefs::kToolbarIconSurfacingBubbleLastShowTime, |
| 99 base::Time::Now().ToInternalValue()); | 99 base::Time::Now().ToInternalValue()); |
| 100 } | 100 } |
| 101 | 101 |
| 102 void ExtensionToolbarIconSurfacingBubbleDelegate::OnBubbleClosed( | 102 void ExtensionToolbarIconSurfacingBubbleDelegate::OnBubbleClosed( |
| 103 CloseAction action) { | 103 CloseAction action) { |
| 104 if (action == CLOSE_EXECUTE) | 104 if (action == CLOSE_EXECUTE) |
| 105 AcknowledgeInPrefs(profile_->GetPrefs()); | 105 AcknowledgeInPrefs(profile_->GetPrefs()); |
| 106 extensions::ExtensionToolbarModel::Get(profile_)->StopHighlighting(); |
| 106 } | 107 } |
| OLD | NEW |