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

Side by Side Diff: chrome/browser/extensions/extension_message_bubble_controller.cc

Issue 246653003: Settings Overides -- warn user when extensions override their NTP. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync to head Created 6 years, 7 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 | Annotate | Revision Log
OLDNEW
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/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "chrome/browser/extensions/extension_message_bubble.h" 10 #include "chrome/browser/extensions/extension_message_bubble.h"
(...skipping 11 matching lines...) Expand all
22 22
23 //////////////////////////////////////////////////////////////////////////////// 23 ////////////////////////////////////////////////////////////////////////////////
24 // ExtensionMessageBubbleController::Delegate 24 // ExtensionMessageBubbleController::Delegate
25 25
26 ExtensionMessageBubbleController::Delegate::Delegate() { 26 ExtensionMessageBubbleController::Delegate::Delegate() {
27 } 27 }
28 28
29 ExtensionMessageBubbleController::Delegate::~Delegate() { 29 ExtensionMessageBubbleController::Delegate::~Delegate() {
30 } 30 }
31 31
32 void ExtensionMessageBubbleController::Delegate::RestrictToSingleExtension(
33 const std::string& extension_id) {
34 NOTIMPLEMENTED(); // Derived classes that need this should implement.
35 }
36
32 //////////////////////////////////////////////////////////////////////////////// 37 ////////////////////////////////////////////////////////////////////////////////
33 // ExtensionMessageBubbleController 38 // ExtensionMessageBubbleController
34 39
35 ExtensionMessageBubbleController::ExtensionMessageBubbleController( 40 ExtensionMessageBubbleController::ExtensionMessageBubbleController(
36 Delegate* delegate, Profile* profile) 41 Delegate* delegate, Profile* profile)
37 : profile_(profile), 42 : profile_(profile),
38 user_action_(ACTION_BOUNDARY), 43 user_action_(ACTION_BOUNDARY),
39 delegate_(delegate), 44 delegate_(delegate),
40 initialized_(false) { 45 initialized_(false) {
41 } 46 }
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 } 160 }
156 161
157 delegate_->LogExtensionCount(extension_list_.size()); 162 delegate_->LogExtensionCount(extension_list_.size());
158 initialized_ = true; 163 initialized_ = true;
159 } 164 }
160 165
161 return &extension_list_; 166 return &extension_list_;
162 } 167 }
163 168
164 } // namespace extensions 169 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698