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

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

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 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_browsertest.h" 5 #include "chrome/browser/extensions/extension_browsertest.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8
8 #include <utility> 9 #include <utility>
9 #include <vector> 10 #include <vector>
10 11
11 #include "base/command_line.h" 12 #include "base/command_line.h"
12 #include "base/files/file_path.h" 13 #include "base/files/file_path.h"
13 #include "base/files/file_util.h" 14 #include "base/files/file_util.h"
14 #include "base/files/scoped_temp_dir.h" 15 #include "base/files/scoped_temp_dir.h"
15 #include "base/path_service.h" 16 #include "base/path_service.h"
16 #include "base/strings/string_number_conversions.h" 17 #include "base/strings/string_number_conversions.h"
17 #include "base/strings/stringprintf.h" 18 #include "base/strings/stringprintf.h"
(...skipping 13 matching lines...) Expand all
31 #include "chrome/browser/extensions/updater/extension_updater.h" 32 #include "chrome/browser/extensions/updater/extension_updater.h"
32 #include "chrome/browser/profiles/profile.h" 33 #include "chrome/browser/profiles/profile.h"
33 #include "chrome/browser/profiles/profile_manager.h" 34 #include "chrome/browser/profiles/profile_manager.h"
34 #include "chrome/browser/ui/browser.h" 35 #include "chrome/browser/ui/browser.h"
35 #include "chrome/browser/ui/browser_window.h" 36 #include "chrome/browser/ui/browser_window.h"
36 #include "chrome/browser/ui/extensions/application_launch.h" 37 #include "chrome/browser/ui/extensions/application_launch.h"
37 #include "chrome/browser/ui/extensions/extension_message_bubble_factory.h" 38 #include "chrome/browser/ui/extensions/extension_message_bubble_factory.h"
38 #include "chrome/browser/ui/tabs/tab_strip_model.h" 39 #include "chrome/browser/ui/tabs/tab_strip_model.h"
39 #include "chrome/common/chrome_paths.h" 40 #include "chrome/common/chrome_paths.h"
40 #include "chrome/common/chrome_switches.h" 41 #include "chrome/common/chrome_switches.h"
42 #include "components/sync/api/string_ordinal.h"
41 #include "components/version_info/version_info.h" 43 #include "components/version_info/version_info.h"
42 #include "content/public/browser/navigation_controller.h" 44 #include "content/public/browser/navigation_controller.h"
43 #include "content/public/browser/navigation_entry.h" 45 #include "content/public/browser/navigation_entry.h"
44 #include "content/public/browser/notification_registrar.h" 46 #include "content/public/browser/notification_registrar.h"
45 #include "content/public/browser/notification_service.h" 47 #include "content/public/browser/notification_service.h"
46 #include "content/public/browser/render_view_host.h" 48 #include "content/public/browser/render_view_host.h"
47 #include "content/public/test/browser_test_utils.h" 49 #include "content/public/test/browser_test_utils.h"
48 #include "content/public/test/test_utils.h" 50 #include "content/public/test/test_utils.h"
49 #include "extensions/browser/extension_dialog_auto_confirm.h" 51 #include "extensions/browser/extension_dialog_auto_confirm.h"
50 #include "extensions/browser/extension_host.h" 52 #include "extensions/browser/extension_host.h"
51 #include "extensions/browser/extension_prefs.h" 53 #include "extensions/browser/extension_prefs.h"
52 #include "extensions/browser/extension_registry.h" 54 #include "extensions/browser/extension_registry.h"
53 #include "extensions/browser/extension_system.h" 55 #include "extensions/browser/extension_system.h"
54 #include "extensions/browser/notification_types.h" 56 #include "extensions/browser/notification_types.h"
55 #include "extensions/browser/uninstall_reason.h" 57 #include "extensions/browser/uninstall_reason.h"
56 #include "extensions/common/constants.h" 58 #include "extensions/common/constants.h"
57 #include "extensions/common/extension_set.h" 59 #include "extensions/common/extension_set.h"
58 #include "sync/api/string_ordinal.h"
59 60
60 #if defined(OS_CHROMEOS) 61 #if defined(OS_CHROMEOS)
61 #include "chromeos/chromeos_switches.h" 62 #include "chromeos/chromeos_switches.h"
62 #endif 63 #endif
63 64
64 using extensions::Extension; 65 using extensions::Extension;
65 using extensions::ExtensionCreator; 66 using extensions::ExtensionCreator;
66 using extensions::ExtensionRegistry; 67 using extensions::ExtensionRegistry;
67 using extensions::FeatureSwitch; 68 using extensions::FeatureSwitch;
68 using extensions::Manifest; 69 using extensions::Manifest;
(...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after
654 return extensions::browsertest_util::ExecuteScriptInBackgroundPage( 655 return extensions::browsertest_util::ExecuteScriptInBackgroundPage(
655 profile(), extension_id, script); 656 profile(), extension_id, script);
656 } 657 }
657 658
658 bool ExtensionBrowserTest::ExecuteScriptInBackgroundPageNoWait( 659 bool ExtensionBrowserTest::ExecuteScriptInBackgroundPageNoWait(
659 const std::string& extension_id, 660 const std::string& extension_id,
660 const std::string& script) { 661 const std::string& script) {
661 return extensions::browsertest_util::ExecuteScriptInBackgroundPageNoWait( 662 return extensions::browsertest_util::ExecuteScriptInBackgroundPageNoWait(
662 profile(), extension_id, script); 663 profile(), extension_id, script);
663 } 664 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/crx_installer.h ('k') | chrome/browser/extensions/extension_disabled_ui_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698