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

Side by Side Diff: chrome/browser/ui/views/collected_cookies_views.cc

Issue 18308004: Update CrOS to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 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 | Annotate | Revision Log
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 #include "chrome/browser/ui/views/collected_cookies_views.h" 5 #include "chrome/browser/ui/views/collected_cookies_views.h"
6 6
7 #include "base/prefs/pref_service.h" 7 #include "base/prefs/pref_service.h"
8 #include "chrome/browser/browsing_data/browsing_data_appcache_helper.h" 8 #include "chrome/browser/browsing_data/browsing_data_appcache_helper.h"
9 #include "chrome/browser/browsing_data/browsing_data_cookie_helper.h" 9 #include "chrome/browser/browsing_data/browsing_data_cookie_helper.h"
10 #include "chrome/browser/browsing_data/browsing_data_database_helper.h" 10 #include "chrome/browser/browsing_data/browsing_data_database_helper.h"
(...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after
515 } 515 }
516 } 516 }
517 517
518 void CollectedCookiesViews::AddContentException(views::TreeView* tree_view, 518 void CollectedCookiesViews::AddContentException(views::TreeView* tree_view,
519 ContentSetting setting) { 519 ContentSetting setting) {
520 CookieTreeHostNode* host_node = 520 CookieTreeHostNode* host_node =
521 static_cast<CookieTreeHostNode*>(tree_view->GetSelectedNode()); 521 static_cast<CookieTreeHostNode*>(tree_view->GetSelectedNode());
522 Profile* profile = 522 Profile* profile =
523 Profile::FromBrowserContext(web_contents_->GetBrowserContext()); 523 Profile::FromBrowserContext(web_contents_->GetBrowserContext());
524 host_node->CreateContentException( 524 host_node->CreateContentException(
525 CookieSettings::Factory::GetForProfile(profile), setting); 525 CookieSettings::Factory::GetForProfile(profile).get(), setting);
526 infobar_->UpdateVisibility(true, setting, host_node->GetTitle()); 526 infobar_->UpdateVisibility(true, setting, host_node->GetTitle());
527 status_changed_ = true; 527 status_changed_ = true;
528 } 528 }
529 529
530 /////////////////////////////////////////////////////////////////////////////// 530 ///////////////////////////////////////////////////////////////////////////////
531 // CollectedCookiesViews, content::NotificationObserver implementation: 531 // CollectedCookiesViews, content::NotificationObserver implementation:
532 532
533 void CollectedCookiesViews::Observe( 533 void CollectedCookiesViews::Observe(
534 int type, 534 int type,
535 const content::NotificationSource& source, 535 const content::NotificationSource& source,
536 const content::NotificationDetails& details) { 536 const content::NotificationDetails& details) {
537 DCHECK_EQ(chrome::NOTIFICATION_COLLECTED_COOKIES_SHOWN, type); 537 DCHECK_EQ(chrome::NOTIFICATION_COLLECTED_COOKIES_SHOWN, type);
538 window_->Close(); 538 window_->Close();
539 } 539 }
OLDNEW
« no previous file with comments | « chrome/browser/nacl_host/nacl_host_message_filter.cc ('k') | chrome/browser/ui/views/select_file_dialog_extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698