Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / search_engines / search_provider_install_state_message_filter.h
index 5a66e93..1cf2379 100644 (file)
@@ -17,16 +17,15 @@ class Profile;
 class SearchProviderInstallStateMessageFilter
     : public content::BrowserMessageFilter {
  public:
-  // Unlike the other methods, the constructor is called on the UI thread.
+  // Unlike the other methods, the constructor must be called on the UI thread.
   SearchProviderInstallStateMessageFilter(int render_process_id,
                                           Profile* profile);
 
   // content::BrowserMessageFilter implementation.
-  virtual bool OnMessageReceived(const IPC::Message& message,
-                                 bool* message_was_ok) OVERRIDE;
+  bool OnMessageReceived(const IPC::Message& message) override;
 
  private:
-  virtual ~SearchProviderInstallStateMessageFilter();
+  ~SearchProviderInstallStateMessageFilter() override;
 
   // Figures out the install state for the search provider.
    search_provider::InstallState GetSearchProviderInstallState(
@@ -43,9 +42,6 @@ class SearchProviderInstallStateMessageFilter
                                      const GURL& requested_host,
                                      IPC::Message* reply_msg);
 
-  // Used to schedule invocations of ReplyWithProviderInstallState.
-  base::WeakPtrFactory<SearchProviderInstallStateMessageFilter> weak_factory_;
-
   // Used to do a load and get information about install states.
   SearchProviderInstallData provider_data_;
 
@@ -53,6 +49,9 @@ class SearchProviderInstallStateMessageFilter
   // thread.
   const bool is_off_the_record_;
 
+  // Used to schedule invocations of ReplyWithProviderInstallState.
+  base::WeakPtrFactory<SearchProviderInstallStateMessageFilter> weak_factory_;
+
   DISALLOW_COPY_AND_ASSIGN(SearchProviderInstallStateMessageFilter);
 };