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

Side by Side Diff: content/browser/safe_util_win.cc

Issue 689563002: Cleanup: Remove unneeded path_service.h includes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 1 month 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) 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 <shlobj.h> 5 #include <shlobj.h>
6 #include <shobjidl.h> 6 #include <shobjidl.h>
7 7
8 #include "content/browser/safe_util_win.h" 8 #include "content/browser/safe_util_win.h"
9 9
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/path_service.h"
13 #include "base/strings/string_util.h" 12 #include "base/strings/string_util.h"
14 #include "base/strings/utf_string_conversions.h" 13 #include "base/strings/utf_string_conversions.h"
15 #include "base/win/scoped_comptr.h" 14 #include "base/win/scoped_comptr.h"
16 #include "ui/base/win/shell.h" 15 #include "ui/base/win/shell.h"
17 #include "url/gurl.h" 16 #include "url/gurl.h"
18 17
19 namespace content { 18 namespace content {
20 namespace { 19 namespace {
21 20
22 // Sets the Zone Identifier on the file to "Internet" (3). Returns true if the 21 // Sets the Zone Identifier on the file to "Internet" (3). Returns true if the
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 hr = attachment_services->SetSource(base::UTF8ToWide(source_url).c_str()); 83 hr = attachment_services->SetSource(base::UTF8ToWide(source_url).c_str());
85 if (FAILED(hr)) 84 if (FAILED(hr))
86 return hr; 85 return hr;
87 86
88 // A failure in the Save() call below could result in the downloaded file 87 // A failure in the Save() call below could result in the downloaded file
89 // being deleted. 88 // being deleted.
90 return attachment_services->Save(); 89 return attachment_services->Save();
91 } 90 }
92 91
93 } // namespace content 92 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | content/browser/shared_worker/worker_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698