Chromium Code Reviews

Side by Side Diff: chrome/browser/ui/gtk/download_item_gtk.cc

Issue 6251001: Move chrome/browser/gtk/ to chrome/browser/ui/gtk/... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/gtk/download_item_gtk.h ('k') | chrome/browser/ui/gtk/download_shelf_gtk.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/download_item_gtk.h" 5 #include "chrome/browser/gtk/download_item_gtk.h"
6 6
7 #include "app/l10n_util.h" 7 #include "app/l10n_util.h"
8 #include "app/resource_bundle.h" 8 #include "app/resource_bundle.h"
9 #include "app/text_elider.h" 9 #include "app/text_elider.h"
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/callback.h" 11 #include "base/callback.h"
(...skipping 858 matching lines...)
870 get_download()->DangerousDownloadValidated(); 870 get_download()->DangerousDownloadValidated();
871 } 871 }
872 872
873 void DownloadItemGtk::OnDangerousDecline(GtkWidget* button) { 873 void DownloadItemGtk::OnDangerousDecline(GtkWidget* button) {
874 UMA_HISTOGRAM_LONG_TIMES("clickjacking.discard_download", 874 UMA_HISTOGRAM_LONG_TIMES("clickjacking.discard_download",
875 base::Time::Now() - creation_time_); 875 base::Time::Now() - creation_time_);
876 if (get_download()->state() == DownloadItem::IN_PROGRESS) 876 if (get_download()->state() == DownloadItem::IN_PROGRESS)
877 get_download()->Cancel(true); 877 get_download()->Cancel(true);
878 get_download()->Remove(true); 878 get_download()->Remove(true);
879 } 879 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/download_item_gtk.h ('k') | chrome/browser/ui/gtk/download_shelf_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine