| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/chromeos/extensions/launcher_search_provider.h" | 5 #include "chrome/browser/chromeos/extensions/launcher_search_provider.h" |
| 6 | 6 |
| 7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
| 8 #include "chrome/browser/chromeos/launcher_search_provider/error_reporter.h" | 8 #include "chrome/browser/chromeos/launcher_search_provider/error_reporter.h" |
| 9 #include "chrome/browser/chromeos/launcher_search_provider/service.h" | 9 #include "chrome/browser/chromeos/launcher_search_provider/launcher_search_provi
der_service.h" |
| 10 #include "chrome/common/extensions/api/launcher_search_provider.h" | 10 #include "chrome/common/extensions/api/launcher_search_provider.h" |
| 11 #include "content/public/browser/render_frame_host.h" | 11 #include "content/public/browser/render_frame_host.h" |
| 12 #include "content/public/browser/render_view_host.h" | 12 #include "content/public/browser/render_view_host.h" |
| 13 | 13 |
| 14 namespace extensions { | 14 namespace extensions { |
| 15 | 15 |
| 16 LauncherSearchProviderSetSearchResultsFunction:: | 16 LauncherSearchProviderSetSearchResultsFunction:: |
| 17 ~LauncherSearchProviderSetSearchResultsFunction() { | 17 ~LauncherSearchProviderSetSearchResultsFunction() { |
| 18 } | 18 } |
| 19 | 19 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 40 scoped_ptr<ErrorReporter> error_reporter( | 40 scoped_ptr<ErrorReporter> error_reporter( |
| 41 new ErrorReporter(sender, routing_id)); | 41 new ErrorReporter(sender, routing_id)); |
| 42 Service* const service = Service::Get(GetProfile()); | 42 Service* const service = Service::Get(GetProfile()); |
| 43 service->SetSearchResults(extension(), error_reporter.Pass(), | 43 service->SetSearchResults(extension(), error_reporter.Pass(), |
| 44 params->query_id, params->results); | 44 params->query_id, params->results); |
| 45 | 45 |
| 46 return true; | 46 return true; |
| 47 } | 47 } |
| 48 | 48 |
| 49 } // namespace extensions | 49 } // namespace extensions |
| OLD | NEW |