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

Side by Side Diff: chrome/browser/ui/views/permission_bubble/permission_prompt_impl.cc

Issue 2922313002: Remove remaining dead code that was used to implement grouped permission drop downs (Closed)
Patch Set: Remove remaining dead code that was used to implement grouped permission drop downs Created 3 years, 6 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
« no previous file with comments | « chrome/browser/ui/views/permission_bubble/permission_prompt_impl.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/views/permission_bubble/permission_prompt_impl.h" 5 #include "chrome/browser/ui/views/permission_bubble/permission_prompt_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/ptr_util.h" 10 #include "base/memory/ptr_util.h"
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 return nullptr; 320 return nullptr;
321 } 321 }
322 322
323 void PermissionPromptImpl::Closing() { 323 void PermissionPromptImpl::Closing() {
324 if (bubble_delegate_) 324 if (bubble_delegate_)
325 bubble_delegate_ = nullptr; 325 bubble_delegate_ = nullptr;
326 if (delegate_) 326 if (delegate_)
327 delegate_->Closing(); 327 delegate_->Closing();
328 } 328 }
329 329
330 void PermissionPromptImpl::ToggleAccept(int index, bool value) {
331 if (delegate_)
332 delegate_->ToggleAccept(index, value);
333 }
334
335 void PermissionPromptImpl::TogglePersist(bool value) { 330 void PermissionPromptImpl::TogglePersist(bool value) {
336 if (delegate_) 331 if (delegate_)
337 delegate_->TogglePersist(value); 332 delegate_->TogglePersist(value);
338 } 333 }
339 334
340 void PermissionPromptImpl::Accept() { 335 void PermissionPromptImpl::Accept() {
341 if (delegate_) 336 if (delegate_)
342 delegate_->Accept(); 337 delegate_->Accept();
343 } 338 }
344 339
345 void PermissionPromptImpl::Deny() { 340 void PermissionPromptImpl::Deny() {
346 if (delegate_) 341 if (delegate_)
347 delegate_->Deny(); 342 delegate_->Deny();
348 } 343 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/permission_bubble/permission_prompt_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698