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

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

Issue 10750010: Add an installType property to the management API (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Forgot to remove param from LoadExtensionWithOptions (sorry) Created 8 years, 4 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "chrome/browser/extensions/extension_apitest.h" 5 #include "chrome/browser/extensions/extension_apitest.h"
6 6
7 #include "base/string_util.h" 7 #include "base/string_util.h"
8 #include "base/stringprintf.h" 8 #include "base/stringprintf.h"
9 #include "chrome/browser/extensions/extension_service.h" 9 #include "chrome/browser/extensions/extension_service.h"
10 #include "chrome/browser/extensions/api/test/test_api.h" 10 #include "chrome/browser/extensions/api/test/test_api.h"
11 #include "chrome/browser/extensions/unpacked_installer.h" 11 #include "chrome/browser/extensions/unpacked_installer.h"
12 #include "chrome/browser/profiles/profile.h" 12 #include "chrome/browser/profiles/profile.h"
13 #include "chrome/browser/ui/browser.h" 13 #include "chrome/browser/ui/browser.h"
14 #include "chrome/browser/ui/extensions/application_launch.h" 14 #include "chrome/browser/ui/extensions/application_launch.h"
15 #include "chrome/common/chrome_notification_types.h" 15 #include "chrome/common/chrome_notification_types.h"
16 #include "chrome/common/chrome_switches.h" 16 #include "chrome/common/chrome_switches.h"
17 #include "chrome/common/extensions/extension.h"
17 #include "chrome/test/base/ui_test_utils.h" 18 #include "chrome/test/base/ui_test_utils.h"
18 #include "content/public/browser/notification_registrar.h" 19 #include "content/public/browser/notification_registrar.h"
19 #include "content/public/browser/notification_service.h" 20 #include "content/public/browser/notification_service.h"
20 #include "content/public/test/browser_test_utils.h" 21 #include "content/public/test/browser_test_utils.h"
21 #include "net/base/net_util.h" 22 #include "net/base/net_util.h"
22 23
23 namespace { 24 namespace {
24 25
25 const char kTestServerPort[] = "testServer.port"; 26 const char kTestServerPort[] = "testServer.port";
26 const char kTestDataDirectory[] = "testDataDirectory"; 27 const char kTestDataDirectory[] = "testDataDirectory";
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 291
291 void PlatformAppApiTest::SetUpCommandLine(CommandLine* command_line) { 292 void PlatformAppApiTest::SetUpCommandLine(CommandLine* command_line) {
292 ExtensionApiTest::SetUpCommandLine(command_line); 293 ExtensionApiTest::SetUpCommandLine(command_line);
293 294
294 // If someone is using this class, we're going to insist on management of the 295 // If someone is using this class, we're going to insist on management of the
295 // relevant flags. If these flags are already set, die. 296 // relevant flags. If these flags are already set, die.
296 DCHECK(!command_line->HasSwitch(switches::kEnableExperimentalExtensionApis)); 297 DCHECK(!command_line->HasSwitch(switches::kEnableExperimentalExtensionApis));
297 298
298 command_line->AppendSwitch(switches::kEnableExperimentalExtensionApis); 299 command_line->AppendSwitch(switches::kEnableExperimentalExtensionApis);
299 } 300 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/management/management_browsertest.cc ('k') | chrome/browser/extensions/extension_browsertest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698