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

Side by Side Diff: chrome/browser/ui/cocoa/website_settings_bubble_controller.mm

Issue 10830050: (Views only) Prompt the user to reload the website after changing site permissions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments (Finnur). Created 8 years, 4 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
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/ui/gtk/website_settings_popup_gtk.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #import "chrome/browser/ui/cocoa/website_settings_bubble_controller.h" 5 #import "chrome/browser/ui/cocoa/website_settings_bubble_controller.h"
6 6
7 #include "base/sys_string_conversions.h" 7 #include "base/sys_string_conversions.h"
8 #import "chrome/browser/ui/cocoa/browser_window_controller.h" 8 #import "chrome/browser/ui/cocoa/browser_window_controller.h"
9 #import "chrome/browser/ui/cocoa/info_bubble_view.h" 9 #import "chrome/browser/ui/cocoa/info_bubble_view.h"
10 #import "chrome/browser/ui/cocoa/info_bubble_window.h" 10 #import "chrome/browser/ui/cocoa/info_bubble_window.h"
(...skipping 574 matching lines...) Expand 10 before | Expand all | Expand 10 after
585 WebsiteSettingsBubbleController* bubble_controller = 585 WebsiteSettingsBubbleController* bubble_controller =
586 [[WebsiteSettingsBubbleController alloc] initWithParentWindow:parent 586 [[WebsiteSettingsBubbleController alloc] initWithParentWindow:parent
587 websiteSettingsUIBridge:bridge]; 587 websiteSettingsUIBridge:bridge];
588 588
589 // Initialize the presenter, which holds the model and controls the UI. 589 // Initialize the presenter, which holds the model and controls the UI.
590 // This is also owned by the bubble controller. 590 // This is also owned by the bubble controller.
591 WebsiteSettings* presenter = new WebsiteSettings( 591 WebsiteSettings* presenter = new WebsiteSettings(
592 bridge, 592 bridge,
593 profile, 593 profile,
594 tab_contents->content_settings(), 594 tab_contents->content_settings(),
595 tab_contents->infobar_tab_helper(),
595 url, 596 url,
596 ssl, 597 ssl,
597 content::CertStore::GetInstance()); 598 content::CertStore::GetInstance());
598 [bubble_controller setPresenter:presenter]; 599 [bubble_controller setPresenter:presenter];
599 600
600 [bubble_controller showWindow:nil]; 601 [bubble_controller showWindow:nil];
601 } 602 }
602 603
603 void WebsiteSettingsUIBridge::SetCookieInfo( 604 void WebsiteSettingsUIBridge::SetCookieInfo(
604 const CookieInfoList& cookie_info_list) { 605 const CookieInfoList& cookie_info_list) {
605 } 606 }
606 607
607 void WebsiteSettingsUIBridge::SetPermissionInfo( 608 void WebsiteSettingsUIBridge::SetPermissionInfo(
608 const PermissionInfoList& permission_info_list) { 609 const PermissionInfoList& permission_info_list) {
609 [bubble_controller_ setPermissionInfo:permission_info_list]; 610 [bubble_controller_ setPermissionInfo:permission_info_list];
610 } 611 }
611 612
612 void WebsiteSettingsUIBridge::SetIdentityInfo( 613 void WebsiteSettingsUIBridge::SetIdentityInfo(
613 const WebsiteSettingsUI::IdentityInfo& identity_info) { 614 const WebsiteSettingsUI::IdentityInfo& identity_info) {
614 [bubble_controller_ setIdentityInfo:identity_info]; 615 [bubble_controller_ setIdentityInfo:identity_info];
615 } 616 }
616 617
617 void WebsiteSettingsUIBridge::SetFirstVisit(const string16& first_visit) { 618 void WebsiteSettingsUIBridge::SetFirstVisit(const string16& first_visit) {
618 [bubble_controller_ setFirstVisit:first_visit]; 619 [bubble_controller_ setFirstVisit:first_visit];
619 } 620 }
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/ui/gtk/website_settings_popup_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698