Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(38)

Side by Side Diff: chrome/browser/ui/extensions/extension_toolbar_icon_surfacing_bubble_delegate.cc

Issue 1246643004: [Extensions UI] Highlight toolbar extensions when the redesign bubble is active (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_toolbar_model_unittest.cc ('k') | chrome/browser/ui/toolbar/toolbar_actions_bar.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698