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

Side by Side Diff: chrome/browser/ui/views/website_settings/website_settings_popup_view.cc

Issue 1280673003: [Mac] Enable MacViews site settings bubble behind --enable-mac-views-dialogs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@enabledialogs
Patch Set: Created 5 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
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/website_settings/website_settings_popup_view.h " 5 #include "chrome/browser/ui/views/website_settings/website_settings_popup_view.h "
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/strings/string_number_conversions.h" 9 #include "base/strings/string_number_conversions.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 809 matching lines...) Expand 10 before | Expand all | Expand 10 after
820 // desktop we should link to that here, too. 820 // desktop we should link to that here, too.
821 browser_->OpenURL(content::OpenURLParams( 821 browser_->OpenURL(content::OpenURLParams(
822 GURL(chrome::kChromeUIContentSettingsURL), content::Referrer(), 822 GURL(chrome::kChromeUIContentSettingsURL), content::Referrer(),
823 NEW_FOREGROUND_TAB, ui::PAGE_TRANSITION_LINK, false)); 823 NEW_FOREGROUND_TAB, ui::PAGE_TRANSITION_LINK, false));
824 presenter_->RecordWebsiteSettingsAction( 824 presenter_->RecordWebsiteSettingsAction(
825 WebsiteSettings::WEBSITE_SETTINGS_SITE_SETTINGS_OPENED); 825 WebsiteSettings::WEBSITE_SETTINGS_SITE_SETTINGS_OPENED);
826 } else { 826 } else {
827 NOTREACHED(); 827 NOTREACHED();
828 } 828 }
829 } 829 }
830
831 namespace chrome {
832
833 void ShowWebsiteSettingsBubbleViews(views::View* anchor_view,
tapted 2015/08/10 05:44:24 since it's called via a virtual method, this can b
jackhou1 2015/08/10 09:11:09 Done.
834 Profile* profile,
835 content::WebContents* web_contents,
836 const GURL& url,
837 const content::SSLStatus& ssl,
838 Browser* browser) {
839 WebsiteSettingsPopupView::ShowPopup(anchor_view, profile, web_contents, url,
840 ssl, browser);
841 }
842
843 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698