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

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

Issue 2881683002: Log the creation of several more dialog box types. (Closed)
Patch Set: Fix alphabetization errors. Created 3 years, 7 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/collected_cookies_views.h" 5 #include "chrome/browser/ui/views/collected_cookies_views.h"
6 6
7 #include "base/macros.h" 7 #include "base/macros.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_channel_id_helper.h" 9 #include "chrome/browser/browsing_data/browsing_data_channel_id_helper.h"
10 #include "chrome/browser/browsing_data/browsing_data_cookie_helper.h" 10 #include "chrome/browser/browsing_data/browsing_data_cookie_helper.h"
11 #include "chrome/browser/browsing_data/browsing_data_database_helper.h" 11 #include "chrome/browser/browsing_data/browsing_data_database_helper.h"
12 #include "chrome/browser/browsing_data/browsing_data_file_system_helper.h" 12 #include "chrome/browser/browsing_data/browsing_data_file_system_helper.h"
13 #include "chrome/browser/browsing_data/browsing_data_indexed_db_helper.h" 13 #include "chrome/browser/browsing_data/browsing_data_indexed_db_helper.h"
14 #include "chrome/browser/browsing_data/browsing_data_local_storage_helper.h" 14 #include "chrome/browser/browsing_data/browsing_data_local_storage_helper.h"
15 #include "chrome/browser/browsing_data/cookies_tree_model.h" 15 #include "chrome/browser/browsing_data/cookies_tree_model.h"
16 #include "chrome/browser/chrome_notification_types.h" 16 #include "chrome/browser/chrome_notification_types.h"
17 #include "chrome/browser/content_settings/cookie_settings_factory.h" 17 #include "chrome/browser/content_settings/cookie_settings_factory.h"
18 #include "chrome/browser/content_settings/local_shared_objects_container.h" 18 #include "chrome/browser/content_settings/local_shared_objects_container.h"
19 #include "chrome/browser/content_settings/tab_specific_content_settings.h" 19 #include "chrome/browser/content_settings/tab_specific_content_settings.h"
20 #include "chrome/browser/infobars/infobar_service.h" 20 #include "chrome/browser/infobars/infobar_service.h"
21 #include "chrome/browser/profiles/profile.h" 21 #include "chrome/browser/profiles/profile.h"
22 #include "chrome/browser/ui/browser_dialogs.h"
22 #include "chrome/browser/ui/collected_cookies_infobar_delegate.h" 23 #include "chrome/browser/ui/collected_cookies_infobar_delegate.h"
23 #include "chrome/browser/ui/views/cookie_info_view.h" 24 #include "chrome/browser/ui/views/cookie_info_view.h"
24 #include "chrome/browser/ui/views/harmony/chrome_layout_provider.h" 25 #include "chrome/browser/ui/views/harmony/chrome_layout_provider.h"
25 #include "chrome/common/pref_names.h" 26 #include "chrome/common/pref_names.h"
26 #include "chrome/grit/generated_resources.h" 27 #include "chrome/grit/generated_resources.h"
27 #include "chrome/grit/locale_settings.h" 28 #include "chrome/grit/locale_settings.h"
28 #include "chrome/grit/theme_resources.h" 29 #include "chrome/grit/theme_resources.h"
29 #include "components/constrained_window/constrained_window_views.h" 30 #include "components/constrained_window/constrained_window_views.h"
30 #include "components/content_settings/core/browser/cookie_settings.h" 31 #include "components/content_settings/core/browser/cookie_settings.h"
31 #include "components/content_settings/core/common/pref_names.h" 32 #include "components/content_settings/core/common/pref_names.h"
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 allow_blocked_button_(NULL), 206 allow_blocked_button_(NULL),
206 for_session_blocked_button_(NULL), 207 for_session_blocked_button_(NULL),
207 cookie_info_view_(NULL), 208 cookie_info_view_(NULL),
208 infobar_(NULL), 209 infobar_(NULL),
209 status_changed_(false) { 210 status_changed_(false) {
210 TabSpecificContentSettings* content_settings = 211 TabSpecificContentSettings* content_settings =
211 TabSpecificContentSettings::FromWebContents(web_contents); 212 TabSpecificContentSettings::FromWebContents(web_contents);
212 registrar_.Add(this, chrome::NOTIFICATION_COLLECTED_COOKIES_SHOWN, 213 registrar_.Add(this, chrome::NOTIFICATION_COLLECTED_COOKIES_SHOWN,
213 content::Source<TabSpecificContentSettings>(content_settings)); 214 content::Source<TabSpecificContentSettings>(content_settings));
214 constrained_window::ShowWebModalDialogViews(this, web_contents); 215 constrained_window::ShowWebModalDialogViews(this, web_contents);
216 chrome::RecordDialogCreation(chrome::DialogIdentifier::COLLECTED_COOKIES);
215 } 217 }
216 218
217 /////////////////////////////////////////////////////////////////////////////// 219 ///////////////////////////////////////////////////////////////////////////////
218 // CollectedCookiesViews, views::DialogDelegate implementation: 220 // CollectedCookiesViews, views::DialogDelegate implementation:
219 221
220 base::string16 CollectedCookiesViews::GetWindowTitle() const { 222 base::string16 CollectedCookiesViews::GetWindowTitle() const {
221 return l10n_util::GetStringUTF16(IDS_COLLECTED_COOKIES_DIALOG_TITLE); 223 return l10n_util::GetStringUTF16(IDS_COLLECTED_COOKIES_DIALOG_TITLE);
222 } 224 }
223 225
224 int CollectedCookiesViews::GetDialogButtons() const { 226 int CollectedCookiesViews::GetDialogButtons() const {
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
546 /////////////////////////////////////////////////////////////////////////////// 548 ///////////////////////////////////////////////////////////////////////////////
547 // CollectedCookiesViews, content::NotificationObserver implementation: 549 // CollectedCookiesViews, content::NotificationObserver implementation:
548 550
549 void CollectedCookiesViews::Observe( 551 void CollectedCookiesViews::Observe(
550 int type, 552 int type,
551 const content::NotificationSource& source, 553 const content::NotificationSource& source,
552 const content::NotificationDetails& details) { 554 const content::NotificationDetails& details) {
553 DCHECK_EQ(chrome::NOTIFICATION_COLLECTED_COOKIES_SHOWN, type); 555 DCHECK_EQ(chrome::NOTIFICATION_COLLECTED_COOKIES_SHOWN, type);
554 GetWidget()->Close(); 556 GetWidget()->Close();
555 } 557 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/arc_app_dialog_view.cc ('k') | chrome/browser/ui/views/constrained_web_dialog_delegate_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698