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

Side by Side Diff: chrome/browser/ui/gtk/website_settings/website_settings_popup_gtk.cc

Issue 16703018: Rewrite scoped_ptr<T>(NULL) to use the default ctor in chrome/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | 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/gtk/website_settings/website_settings_popup_gtk.h" 5 #include "chrome/browser/ui/gtk/website_settings/website_settings_popup_gtk.h"
6 6
7 #include "base/i18n/rtl.h" 7 #include "base/i18n/rtl.h"
8 #include "base/strings/string_number_conversions.h" 8 #include "base/strings/string_number_conversions.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "chrome/browser/certificate_viewer.h" 10 #include "chrome/browser/certificate_viewer.h"
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 profile_(profile), 213 profile_(profile),
214 web_contents_(web_contents), 214 web_contents_(web_contents),
215 browser_(NULL), 215 browser_(NULL),
216 cert_id_(0), 216 cert_id_(0),
217 header_box_(NULL), 217 header_box_(NULL),
218 cookies_section_contents_(NULL), 218 cookies_section_contents_(NULL),
219 permissions_section_contents_(NULL), 219 permissions_section_contents_(NULL),
220 identity_contents_(NULL), 220 identity_contents_(NULL),
221 connection_contents_(NULL), 221 connection_contents_(NULL),
222 first_visit_contents_(NULL), 222 first_visit_contents_(NULL),
223 notebook_(NULL), 223 notebook_(NULL) {
224 presenter_(NULL) {
225 BrowserWindowGtk* browser_window = 224 BrowserWindowGtk* browser_window =
226 BrowserWindowGtk::GetBrowserWindowForNativeWindow(parent); 225 BrowserWindowGtk::GetBrowserWindowForNativeWindow(parent);
227 browser_ = browser_window->browser(); 226 browser_ = browser_window->browser();
228 anchor_ = browser_window-> 227 anchor_ = browser_window->
229 GetToolbar()->GetLocationBarView()->location_icon_widget(); 228 GetToolbar()->GetLocationBarView()->location_icon_widget();
230 229
231 registrar_.Add(this, chrome::NOTIFICATION_BROWSER_THEME_CHANGED, 230 registrar_.Add(this, chrome::NOTIFICATION_BROWSER_THEME_CHANGED,
232 content::Source<ThemeService>(theme_service_)); 231 content::Source<ThemeService>(theme_service_));
233 232
234 InitContents(); 233 InitContents();
(...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after
734 } 733 }
735 734
736 void WebsiteSettingsPopupGtk::OnHelpLinkClicked(GtkWidget* widget) { 735 void WebsiteSettingsPopupGtk::OnHelpLinkClicked(GtkWidget* widget) {
737 browser_->OpenURL(OpenURLParams(GURL(chrome::kPageInfoHelpCenterURL), 736 browser_->OpenURL(OpenURLParams(GURL(chrome::kPageInfoHelpCenterURL),
738 content::Referrer(), 737 content::Referrer(),
739 NEW_FOREGROUND_TAB, 738 NEW_FOREGROUND_TAB,
740 content::PAGE_TRANSITION_LINK, 739 content::PAGE_TRANSITION_LINK,
741 false)); 740 false));
742 bubble_->Close(); 741 bubble_->Close();
743 } 742 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698