Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / search_engines / search_provider_install_state_message_filter.cc
index 8d658a2..e4effe2 100644 (file)
@@ -6,7 +6,10 @@
 
 #include "base/bind.h"
 #include "base/logging.h"
+#include "chrome/browser/google/google_url_tracker_factory.h"
 #include "chrome/browser/profiles/profile.h"
+#include "chrome/browser/search_engines/template_url_service_factory.h"
+#include "chrome/browser/search_engines/ui_thread_search_terms_data.h"
 #include "chrome/common/render_messages.h"
 #include "content/public/browser/render_process_host.h"
 #include "url/gurl.h"
@@ -18,7 +21,9 @@ SearchProviderInstallStateMessageFilter(
     int render_process_id,
     Profile* profile)
     : BrowserMessageFilter(ChromeMsgStart),
-      provider_data_(profile,
+      provider_data_(TemplateURLServiceFactory::GetForProfile(profile),
+                     UIThreadSearchTermsData(profile).GoogleBaseURLValue(),
+                     GoogleURLTrackerFactory::GetForProfile(profile),
                      content::RenderProcessHost::FromID(render_process_id)),
       is_off_the_record_(profile->IsOffTheRecord()),
       weak_factory_(this) {