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

Side by Side Diff: chrome/browser/gtk/options/advanced_contents_gtk.cc

Issue 523139: Adds local storage nodes to cookie tree model and cookies view. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 10 years, 11 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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/gtk/options/advanced_contents_gtk.h" 5 #include "chrome/browser/gtk/options/advanced_contents_gtk.h"
6 6
7 #include <sys/types.h> 7 #include <sys/types.h>
8 #include <sys/wait.h> 8 #include <sys/wait.h>
9 9
10 #include "app/l10n_util.h" 10 #include "app/l10n_util.h"
(...skipping 743 matching lines...) Expand 10 before | Expand all | Expand 10 after
754 } 754 }
755 privacy_section->UserMetricsRecordAction( 755 privacy_section->UserMetricsRecordAction(
756 kUserMetrics[cookie_policy], privacy_section->profile()->GetPrefs()); 756 kUserMetrics[cookie_policy], privacy_section->profile()->GetPrefs());
757 privacy_section->cookie_behavior_.SetValue(cookie_policy); 757 privacy_section->cookie_behavior_.SetValue(cookie_policy);
758 } 758 }
759 759
760 // static 760 // static
761 void PrivacySection::OnShowCookiesButtonClicked( 761 void PrivacySection::OnShowCookiesButtonClicked(
762 GtkButton *button, PrivacySection* privacy_section) { 762 GtkButton *button, PrivacySection* privacy_section) {
763 privacy_section->UserMetricsRecordAction("Options_ShowCookies", NULL); 763 privacy_section->UserMetricsRecordAction("Options_ShowCookies", NULL);
764 CookiesView::Show(privacy_section->profile()); 764 CookiesView::Show(privacy_section->profile(),
765 new BrowsingDataLocalStorageHelper(
766 privacy_section->profile()));
765 } 767 }
766 768
767 void PrivacySection::NotifyPrefChanged(const std::wstring* pref_name) { 769 void PrivacySection::NotifyPrefChanged(const std::wstring* pref_name) {
768 pref_changing_ = true; 770 pref_changing_ = true;
769 if (!pref_name || *pref_name == prefs::kAlternateErrorPagesEnabled) { 771 if (!pref_name || *pref_name == prefs::kAlternateErrorPagesEnabled) {
770 gtk_toggle_button_set_active( 772 gtk_toggle_button_set_active(
771 GTK_TOGGLE_BUTTON(enable_link_doctor_checkbox_), 773 GTK_TOGGLE_BUTTON(enable_link_doctor_checkbox_),
772 alternate_error_pages_.GetValue()); 774 alternate_error_pages_.GetValue());
773 } 775 }
774 if (!pref_name || *pref_name == prefs::kSearchSuggestEnabled) { 776 if (!pref_name || *pref_name == prefs::kSearchSuggestEnabled) {
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
1109 l10n_util::GetStringUTF8(IDS_OPTIONS_ADVANCED_SECTION_TITLE_CONTENT), 1111 l10n_util::GetStringUTF8(IDS_OPTIONS_ADVANCED_SECTION_TITLE_CONTENT),
1110 web_content_section_->get_page_widget(), false); 1112 web_content_section_->get_page_widget(), false);
1111 1113
1112 security_section_.reset(new SecuritySection(profile_)); 1114 security_section_.reset(new SecuritySection(profile_));
1113 options_builder.AddOptionGroup( 1115 options_builder.AddOptionGroup(
1114 l10n_util::GetStringUTF8(IDS_OPTIONS_ADVANCED_SECTION_TITLE_SECURITY), 1116 l10n_util::GetStringUTF8(IDS_OPTIONS_ADVANCED_SECTION_TITLE_SECURITY),
1115 security_section_->get_page_widget(), false); 1117 security_section_->get_page_widget(), false);
1116 1118
1117 page_ = options_builder.get_page_widget(); 1119 page_ = options_builder.get_page_widget();
1118 } 1120 }
OLDNEW
« no previous file with comments | « chrome/browser/cookies_tree_model_unittest.cc ('k') | chrome/browser/gtk/options/cookies_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698