Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(59)

Side by Side Diff: chrome/browser/extensions/app_background_page_apitest.cc

Issue 7096016: Remove JS dialog dependency from content. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: now a tc delegate Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/stringprintf.h" 5 #include "base/stringprintf.h"
6 #include "base/utf_string_conversions.h"
6 #include "chrome/browser/background_contents_service.h" 7 #include "chrome/browser/background_contents_service.h"
7 #include "chrome/browser/background_contents_service_factory.h" 8 #include "chrome/browser/background_contents_service_factory.h"
8 #include "chrome/browser/extensions/extension_apitest.h" 9 #include "chrome/browser/extensions/extension_apitest.h"
9 #include "chrome/browser/extensions/extension_service.h" 10 #include "chrome/browser/extensions/extension_service.h"
10 #include "chrome/browser/profiles/profile.h" 11 #include "chrome/browser/profiles/profile.h"
11 #include "chrome/browser/ui/browser.h" 12 #include "chrome/browser/ui/browser.h"
12 #include "chrome/common/chrome_switches.h" 13 #include "chrome/common/chrome_switches.h"
13 #include "chrome/common/extensions/extension.h" 14 #include "chrome/common/extensions/extension.h"
14 #include "chrome/test/ui_test_utils.h" 15 #include "chrome/test/ui_test_utils.h"
15 #include "net/base/mock_host_resolver.h" 16 #include "net/base/mock_host_resolver.h"
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 123
123 FilePath app_dir; 124 FilePath app_dir;
124 ASSERT_TRUE(CreateApp(app_manifest, &app_dir)); 125 ASSERT_TRUE(CreateApp(app_manifest, &app_dir));
125 ASSERT_TRUE(LoadExtension(app_dir)); 126 ASSERT_TRUE(LoadExtension(app_dir));
126 127
127 const Extension* extension = GetSingleLoadedExtension(); 128 const Extension* extension = GetSingleLoadedExtension();
128 ASSERT_TRUE( 129 ASSERT_TRUE(
129 BackgroundContentsServiceFactory::GetForProfile(browser()->profile())-> 130 BackgroundContentsServiceFactory::GetForProfile(browser()->profile())->
130 GetAppBackgroundContents(ASCIIToUTF16(extension->id()))); 131 GetAppBackgroundContents(ASCIIToUTF16(extension->id())));
131 } 132 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698