Move set_include_incognito call to constructor

BUG=153150
TEST=Use the repro steps in bug report

Review URL: https://chromiumcodereview.appspot.com/11008013

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159818 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/browser/extensions/extension_function_dispatcher.h b/chrome/browser/extensions/extension_function_dispatcher.h
index af2a060e..7a058b17 100644
--- a/chrome/browser/extensions/extension_function_dispatcher.h
+++ b/chrome/browser/extensions/extension_function_dispatcher.h
@@ -109,6 +109,15 @@
   Profile* profile() { return profile_; }
 
  private:
+  // Helper to check whether an ExtensionFunction has the required permissions.
+  // This should be called after the function is fully initialized.
+  static bool CheckPermissions(
+      ExtensionFunction* function,
+      const extensions::Extension* extension,
+      const ExtensionHostMsg_Request_Params& params,
+      IPC::Sender* ipc_sender,
+      int routing_id);
+
   // Helper to create an ExtensionFunction to handle the function given by
   // |params|. Can be called on any thread.
   // Does not set subclass properties, or include_incognito.