| Index: chrome/service/cloud_print/cloud_print_url_fetcher.cc
|
| diff --git a/chrome/service/cloud_print/cloud_print_url_fetcher.cc b/chrome/service/cloud_print/cloud_print_url_fetcher.cc
|
| index dc2a46869f733f1aac4dce371c4c4520e303c0a5..f28dac0e1af4e0e4d9efa9d10eb81ef6b29590cd 100644
|
| --- a/chrome/service/cloud_print/cloud_print_url_fetcher.cc
|
| +++ b/chrome/service/cloud_print/cloud_print_url_fetcher.cc
|
| @@ -20,6 +20,25 @@
|
|
|
| namespace cloud_print {
|
|
|
| +static CloudPrintURLFetcherFactory* g_factory = NULL;
|
| +
|
| +// static
|
| +CloudPrintURLFetcher* CloudPrintURLFetcher::Create() {
|
| + CloudPrintURLFetcherFactory* factory = CloudPrintURLFetcher::factory();
|
| + return factory ? factory->CreateCloudPrintURLFetcher() :
|
| + new CloudPrintURLFetcher;
|
| +}
|
| +
|
| +// static
|
| +CloudPrintURLFetcherFactory* CloudPrintURLFetcher::factory() {
|
| + return g_factory;
|
| +}
|
| +
|
| +// static
|
| +void CloudPrintURLFetcher::set_factory(CloudPrintURLFetcherFactory* factory) {
|
| + g_factory = factory;
|
| +}
|
| +
|
| CloudPrintURLFetcher::ResponseAction
|
| CloudPrintURLFetcher::Delegate::HandleRawResponse(
|
| const net::URLFetcher* source,
|
|
|