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

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

Issue 2758103003: Extensions: Move IsIncognitoEnabled to extensions/ from chrome/. (Closed)
Patch Set: Address review Created 3 years, 9 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/chrome_test_extension_loader.h" 5 #include "chrome/browser/extensions/chrome_test_extension_loader.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/files/file_util.h" 9 #include "base/files/file_util.h"
10 #include "base/run_loop.h" 10 #include "base/run_loop.h"
11 #include "chrome/browser/extensions/chrome_extension_test_notification_observer. h" 11 #include "chrome/browser/extensions/chrome_extension_test_notification_observer. h"
12 #include "chrome/browser/extensions/crx_installer.h" 12 #include "chrome/browser/extensions/crx_installer.h"
13 #include "chrome/browser/extensions/extension_creator.h" 13 #include "chrome/browser/extensions/extension_creator.h"
14 #include "chrome/browser/extensions/extension_service.h" 14 #include "chrome/browser/extensions/extension_service.h"
15 #include "chrome/browser/extensions/extension_util.h" 15 #include "chrome/browser/extensions/extension_util.h"
16 #include "chrome/browser/extensions/unpacked_installer.h" 16 #include "chrome/browser/extensions/unpacked_installer.h"
17 #include "content/public/browser/notification_details.h" 17 #include "content/public/browser/notification_details.h"
18 #include "content/public/browser/notification_source.h" 18 #include "content/public/browser/notification_source.h"
19 #include "content/public/test/test_utils.h" 19 #include "content/public/test/test_utils.h"
20 #include "extensions/browser/extension_registry.h" 20 #include "extensions/browser/extension_registry.h"
21 #include "extensions/browser/extension_system.h" 21 #include "extensions/browser/extension_system.h"
22 #include "extensions/browser/extension_util.h"
22 #include "extensions/browser/notification_types.h" 23 #include "extensions/browser/notification_types.h"
23 #include "extensions/browser/test_extension_registry_observer.h" 24 #include "extensions/browser/test_extension_registry_observer.h"
24 #include "testing/gtest/include/gtest/gtest.h" 25 #include "testing/gtest/include/gtest/gtest.h"
25 26
26 namespace extensions { 27 namespace extensions {
27 28
28 ChromeTestExtensionLoader::ChromeTestExtensionLoader( 29 ChromeTestExtensionLoader::ChromeTestExtensionLoader(
29 content::BrowserContext* browser_context) 30 content::BrowserContext* browser_context)
30 : browser_context_(browser_context), 31 : browser_context_(browser_context),
31 extension_system_(ExtensionSystem::Get(browser_context)), 32 extension_system_(ExtensionSystem::Get(browser_context)),
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 222
222 std::string install_warnings_message = "Unexpected warnings for extension:\n"; 223 std::string install_warnings_message = "Unexpected warnings for extension:\n";
223 for (const InstallWarning& warning : install_warnings) 224 for (const InstallWarning& warning : install_warnings)
224 install_warnings_message += " " + warning.message + "\n"; 225 install_warnings_message += " " + warning.message + "\n";
225 226
226 ADD_FAILURE() << install_warnings_message; 227 ADD_FAILURE() << install_warnings_message;
227 return false; 228 return false;
228 } 229 }
229 230
230 } // namespace extensions 231 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698