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

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

Issue 12298037: Revert 183123 (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1417/src/
Patch Set: 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 | Annotate | Revision Log
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"
15 #include "chrome/browser/ui/browser.h" 14 #include "chrome/browser/ui/browser.h"
16 #include "chrome/browser/ui/tabs/tab_strip_model.h" 15 #include "chrome/browser/ui/tabs/tab_strip_model.h"
17 #include "chrome/common/chrome_notification_types.h" 16 #include "chrome/common/chrome_notification_types.h"
18 #include "chrome/common/chrome_switches.h" 17 #include "chrome/common/chrome_switches.h"
19 #include "chrome/common/extensions/extension_builder.h" 18 #include "chrome/common/extensions/extension_builder.h"
20 #include "chrome/common/extensions/value_builder.h" 19 #include "chrome/common/extensions/value_builder.h"
21 #include "chrome/test/base/in_process_browser_test.h" 20 #include "chrome/test/base/in_process_browser_test.h"
22 #include "chrome/test/base/ui_test_utils.h" 21 #include "chrome/test/base/ui_test_utils.h"
23 #include "content/public/browser/notification_registrar.h" 22 #include "content/public/browser/notification_registrar.h"
24 #include "content/public/browser/notification_service.h" 23 #include "content/public/browser/notification_service.h"
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 switches::kLimitedInstallFromWebstore, "2"); 324 switches::kLimitedInstallFromWebstore, "2");
326 command_line->AppendSwitchASCII( 325 command_line->AppendSwitchASCII(
327 switches::kAppsGalleryInstallAutoConfirmForTests, "cancel"); 326 switches::kAppsGalleryInstallAutoConfirmForTests, "cancel");
328 extensions::StartupHelper helper; 327 extensions::StartupHelper helper;
329 helper.LimitedInstallFromWebstore(*command_line, browser()->profile(), 328 helper.LimitedInstallFromWebstore(*command_line, browser()->profile(),
330 MessageLoop::QuitWhenIdleClosure()); 329 MessageLoop::QuitWhenIdleClosure());
331 MessageLoop::current()->Run(); 330 MessageLoop::current()->Run();
332 EXPECT_FALSE(saw_install()); 331 EXPECT_FALSE(saw_install());
333 EXPECT_EQ(0, browser_open_count()); 332 EXPECT_EQ(0, browser_open_count());
334 } 333 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/web_view_browsertest.cc ('k') | chrome/browser/profiles/incognito_selection_clipboard_uitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698