OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/ui/webui/print_preview/printer_backend_proxy.h" | 5 #include "chrome/browser/ui/webui/print_preview/printer_backend_proxy.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 case chromeos::PrinterSetupResult::kMaxValue: | 178 case chromeos::PrinterSetupResult::kMaxValue: |
179 NOTREACHED() << "This value is not expected"; | 179 NOTREACHED() << "This value is not expected"; |
180 break; | 180 break; |
181 } | 181 } |
182 | 182 |
183 // TODO(skau): Open printer settings if this is resolvable. | 183 // TODO(skau): Open printer settings if this is resolvable. |
184 cb.Run(nullptr); | 184 cb.Run(nullptr); |
185 } | 185 } |
186 | 186 |
187 chromeos::SyncedPrintersManager* prefs_; | 187 chromeos::SyncedPrintersManager* prefs_; |
188 scoped_refptr<chromeos::printing::PpdProvider> ppd_provider_; | 188 scoped_refptr<chromeos::PpdProvider> ppd_provider_; |
189 std::unique_ptr<chromeos::PrinterConfigurer> printer_configurer_; | 189 std::unique_ptr<chromeos::PrinterConfigurer> printer_configurer_; |
190 base::WeakPtrFactory<PrinterBackendProxyChromeos> weak_factory_; | 190 base::WeakPtrFactory<PrinterBackendProxyChromeos> weak_factory_; |
191 | 191 |
192 DISALLOW_COPY_AND_ASSIGN(PrinterBackendProxyChromeos); | 192 DISALLOW_COPY_AND_ASSIGN(PrinterBackendProxyChromeos); |
193 }; | 193 }; |
194 | 194 |
195 } // namespace | 195 } // namespace |
196 | 196 |
197 std::unique_ptr<PrinterBackendProxy> PrinterBackendProxy::Create( | 197 std::unique_ptr<PrinterBackendProxy> PrinterBackendProxy::Create( |
198 Profile* profile) { | 198 Profile* profile) { |
199 return base::MakeUnique<PrinterBackendProxyChromeos>(profile); | 199 return base::MakeUnique<PrinterBackendProxyChromeos>(profile); |
200 } | 200 } |
201 | 201 |
202 } // namespace printing | 202 } // namespace printing |
OLD | NEW |