using content::ResourceController;
using content::ResourceThrottle;
+using content::ResourceType;
namespace extensions {
net::TestURLRequest* request =
new net::TestURLRequest(url, net::DEFAULT_PRIORITY, delegate, context);
- ResourceThrottle* throttle =
- listener_->CreateResourceThrottle(url, ResourceType::MAIN_FRAME);
+ ResourceThrottle* throttle = listener_->CreateResourceThrottle(
+ url, content::RESOURCE_TYPE_MAIN_FRAME);
bool defer = false;
if (throttle) {
ASSERT_FALSE(request->is_pending());
content::NotificationService::current()->Notify(
- chrome::NOTIFICATION_USER_SCRIPTS_UPDATED,
+ extensions::NOTIFICATION_USER_SCRIPTS_UPDATED,
content::Source<Profile>(profile_.get()),
content::NotificationService::NoDetails());
base::MessageLoop::current()->RunUntilIdle();
ASSERT_FALSE(request->is_pending());
content::NotificationService::current()->Notify(
- chrome::NOTIFICATION_USER_SCRIPTS_UPDATED,
+ extensions::NOTIFICATION_USER_SCRIPTS_UPDATED,
content::Source<Profile>(profile_.get()),
content::NotificationService::NoDetails());
base::MessageLoop::current()->RunUntilIdle();
extensions::ExtensionRegistry::Get(&profile2)->AddEnabled(extension);
content::NotificationService::current()->Notify(
- chrome::NOTIFICATION_EXTENSION_LOADED_DEPRECATED,
+ extensions::NOTIFICATION_EXTENSION_LOADED_DEPRECATED,
content::Source<Profile>(&profile2),
content::Details<Extension>(extension.get()));
// When the first profile's user scripts are ready, the request should still
// be blocked waiting for profile2.
content::NotificationService::current()->Notify(
- chrome::NOTIFICATION_USER_SCRIPTS_UPDATED,
+ extensions::NOTIFICATION_USER_SCRIPTS_UPDATED,
content::Source<Profile>(profile_.get()),
content::NotificationService::NoDetails());
base::MessageLoop::current()->RunUntilIdle();
// After profile2 is ready, the request should proceed.
content::NotificationService::current()->Notify(
- chrome::NOTIFICATION_USER_SCRIPTS_UPDATED,
+ extensions::NOTIFICATION_USER_SCRIPTS_UPDATED,
content::Source<Profile>(&profile2),
content::NotificationService::NoDetails());
base::MessageLoop::current()->RunUntilIdle();
new net::TestURLRequest(url, net::DEFAULT_PRIORITY, &delegate, &context));
ResourceThrottle* throttle =
- listener_->CreateResourceThrottle(url, ResourceType::MAIN_FRAME);
+ listener_->CreateResourceThrottle(url, content::RESOURCE_TYPE_MAIN_FRAME);
ASSERT_TRUE(throttle);
request->SetUserData(NULL, new ThrottleController(request.get(), throttle));
ASSERT_FALSE(request->is_pending());
content::NotificationService::current()->Notify(
- chrome::NOTIFICATION_USER_SCRIPTS_UPDATED,
+ extensions::NOTIFICATION_USER_SCRIPTS_UPDATED,
content::Source<Profile>(profile_.get()),
content::NotificationService::NoDetails());
base::MessageLoop::current()->RunUntilIdle();