OLD | NEW |
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/service/cloud_print/print_system.h" | 5 #include "chrome/service/cloud_print/print_system.h" |
6 | 6 |
7 #include <objidl.h> | 7 #include <objidl.h> |
8 #include <winspool.h> | 8 #include <winspool.h> |
9 #if defined(_WIN32_WINNT) | 9 #if defined(_WIN32_WINNT) |
10 #undef _WIN32_WINNT | 10 #undef _WIN32_WINNT |
(...skipping 846 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
857 wchar_t* proxy_id_as_string = NULL; | 857 wchar_t* proxy_id_as_string = NULL; |
858 UuidToString(&proxy_id, reinterpret_cast<RPC_WSTR *>(&proxy_id_as_string)); | 858 UuidToString(&proxy_id, reinterpret_cast<RPC_WSTR *>(&proxy_id_as_string)); |
859 DCHECK(proxy_id_as_string); | 859 DCHECK(proxy_id_as_string); |
860 std::string ret; | 860 std::string ret; |
861 WideToUTF8(proxy_id_as_string, wcslen(proxy_id_as_string), &ret); | 861 WideToUTF8(proxy_id_as_string, wcslen(proxy_id_as_string), &ret); |
862 RpcStringFree(reinterpret_cast<RPC_WSTR *>(&proxy_id_as_string)); | 862 RpcStringFree(reinterpret_cast<RPC_WSTR *>(&proxy_id_as_string)); |
863 return ret; | 863 return ret; |
864 } | 864 } |
865 | 865 |
866 scoped_refptr<PrintSystem> PrintSystem::CreateInstance( | 866 scoped_refptr<PrintSystem> PrintSystem::CreateInstance( |
867 const DictionaryValue* print_system_settings) { | 867 const base::DictionaryValue* print_system_settings) { |
868 return new PrintSystemWin; | 868 return new PrintSystemWin; |
869 } | 869 } |
870 | 870 |
871 } // namespace cloud_print | 871 } // namespace cloud_print |
OLD | NEW |