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

Side by Side Diff: chrome/browser/profiles/profile.cc

Issue 7466033: Fix warning prompting on closing a window that will cancel downloads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compiler warning. Created 9 years, 5 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) 2011 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/profiles/profile.h" 5 #include "chrome/browser/profiles/profile.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 833 matching lines...) Expand 10 before | Expand all | Expand 10 after
844 }; 844 };
845 #endif 845 #endif
846 846
847 Profile* Profile::CreateOffTheRecordProfile() { 847 Profile* Profile::CreateOffTheRecordProfile() {
848 #if defined(OS_CHROMEOS) 848 #if defined(OS_CHROMEOS)
849 if (Profile::IsGuestSession()) 849 if (Profile::IsGuestSession())
850 return new GuestSessionProfile(this); 850 return new GuestSessionProfile(this);
851 #endif 851 #endif
852 return new OffTheRecordProfileImpl(this); 852 return new OffTheRecordProfileImpl(this);
853 } 853 }
854
855 int Profile::DownloadCount() {
856 if (!HasCreatedDownloadManager())
857 return 0;
858
859 return GetDownloadManager()->in_progress_count();
Miranda Callahan 2011/07/21 23:04:17 A tiny change, but maybe 2 lines instead of 4 here
Randy Smith (Not in Mondays) 2011/07/22 20:41:30 Done.
860 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698