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

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

Issue 12041078: Clear the clipboard closing Incognito window (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Renamed set_write_objects_callback() Created 7 years, 10 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 "base/command_line.h" 5 #include "base/command_line.h"
6 #include "base/stringprintf.h" 6 #include "base/stringprintf.h"
7 #include "base/utf_string_conversions.h" 7 #include "base/utf_string_conversions.h"
8 #include "chrome/browser/extensions/extension_host.h" 8 #include "chrome/browser/extensions/extension_host.h"
9 #include "chrome/browser/extensions/extension_install_ui.h" 9 #include "chrome/browser/extensions/extension_install_ui.h"
10 #include "chrome/browser/extensions/extension_service.h" 10 #include "chrome/browser/extensions/extension_service.h"
11 #include "chrome/browser/extensions/extension_system.h" 11 #include "chrome/browser/extensions/extension_system.h"
12 #include "chrome/browser/extensions/startup_helper.h" 12 #include "chrome/browser/extensions/startup_helper.h"
13 #include "chrome/browser/extensions/webstore_standalone_installer.h" 13 #include "chrome/browser/extensions/webstore_standalone_installer.h"
14 #include "chrome/browser/profiles/profile.h"
14 #include "chrome/browser/ui/browser.h" 15 #include "chrome/browser/ui/browser.h"
15 #include "chrome/browser/ui/tabs/tab_strip_model.h" 16 #include "chrome/browser/ui/tabs/tab_strip_model.h"
16 #include "chrome/common/chrome_notification_types.h" 17 #include "chrome/common/chrome_notification_types.h"
17 #include "chrome/common/chrome_switches.h" 18 #include "chrome/common/chrome_switches.h"
18 #include "chrome/common/extensions/extension_builder.h" 19 #include "chrome/common/extensions/extension_builder.h"
19 #include "chrome/common/extensions/value_builder.h" 20 #include "chrome/common/extensions/value_builder.h"
20 #include "chrome/test/base/in_process_browser_test.h" 21 #include "chrome/test/base/in_process_browser_test.h"
21 #include "chrome/test/base/ui_test_utils.h" 22 #include "chrome/test/base/ui_test_utils.h"
22 #include "content/public/browser/notification_registrar.h" 23 #include "content/public/browser/notification_registrar.h"
23 #include "content/public/browser/notification_service.h" 24 #include "content/public/browser/notification_service.h"
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 278
278 IN_PROC_BROWSER_TEST_F(CommandLineWebstoreInstall, Cancel) { 279 IN_PROC_BROWSER_TEST_F(CommandLineWebstoreInstall, Cancel) {
279 CommandLine* command_line = CommandLine::ForCurrentProcess(); 280 CommandLine* command_line = CommandLine::ForCurrentProcess();
280 command_line->AppendSwitchASCII( 281 command_line->AppendSwitchASCII(
281 switches::kAppsGalleryInstallAutoConfirmForTests, "cancel"); 282 switches::kAppsGalleryInstallAutoConfirmForTests, "cancel");
282 extensions::StartupHelper helper; 283 extensions::StartupHelper helper;
283 EXPECT_FALSE(helper.InstallFromWebstore(*command_line, browser()->profile())); 284 EXPECT_FALSE(helper.InstallFromWebstore(*command_line, browser()->profile()));
284 EXPECT_FALSE(saw_install()); 285 EXPECT_FALSE(saw_install());
285 EXPECT_EQ(0, browser_open_count()); 286 EXPECT_EQ(0, browser_open_count());
286 } 287 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698