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

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

Issue 16408017: Use a direct include of utf_string_conversions.h in content/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 6 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 <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" 12 #include "base/path_service.h"
13 #include "base/string_util.h" 13 #include "base/string_util.h"
14 #include "base/utf_string_conversions.h" 14 #include "base/strings/utf_string_conversions.h"
15 #include "base/win/scoped_comptr.h" 15 #include "base/win/scoped_comptr.h"
16 #include "googleurl/src/gurl.h" 16 #include "googleurl/src/gurl.h"
17 #include "ui/base/win/shell.h" 17 #include "ui/base/win/shell.h"
18 18
19 namespace content { 19 namespace content {
20 namespace { 20 namespace {
21 21
22 // This GUID is associated with any 'don't ask me again' settings that the 22 // This GUID is associated with any 'don't ask me again' settings that the
23 // user can select for different file types. 23 // user can select for different file types.
24 // {2676A9A2-D919-4fee-9187-152100393AB2} 24 // {2676A9A2-D919-4fee-9187-152100393AB2}
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 hr = attachment_services->SetSource(UTF8ToWide(source_url.spec()).c_str()); 146 hr = attachment_services->SetSource(UTF8ToWide(source_url.spec()).c_str());
147 if (FAILED(hr)) 147 if (FAILED(hr))
148 return hr; 148 return hr;
149 149
150 // A failure in the Save() call below could result in the downloaded file 150 // A failure in the Save() call below could result in the downloaded file
151 // being deleted. 151 // being deleted.
152 return attachment_services->Save(); 152 return attachment_services->Save();
153 } 153 }
154 154
155 } // namespace content 155 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_mac_unittest.mm ('k') | content/browser/session_history_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698