#include "base/logging.h"
#include "base/metrics/histogram.h"
#include "base/stl_util.h"
-#include "chrome/browser/extensions/tab_helper.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/sessions/session_types.h"
#include "chrome/browser/sessions/tab_restore_service_delegate.h"
#include "chrome/browser/ui/webui/ntp/core_app_launcher_handler.h"
#endif
+#if defined(ENABLE_EXTENSIONS)
+#include "chrome/browser/extensions/tab_helper.h"
+#endif
+
using content::NavigationController;
using content::NavigationEntry;
using content::WebContents;
tab->current_navigation_index = 0;
tab->tabstrip_index = index;
+#if defined(ENABLE_EXTENSIONS)
extensions::TabHelper* extensions_tab_helper =
extensions::TabHelper::FromWebContents(controller->GetWebContents());
// extensions_tab_helper is NULL in some browser tests.
if (extension)
tab->extension_app_id = extension->id();
}
+#endif
tab->user_agent_override =
controller->GetWebContents()->GetUserAgentOverride();