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

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

Issue 1226163010: Fix content verifier problem with content scripts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merged latest head Created 5 years, 5 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 <vector> 7 #include <vector>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 Manifest::INTERNAL, 394 Manifest::INTERNAL,
395 browser(), 395 browser(),
396 Extension::NO_FLAGS, 396 Extension::NO_FLAGS,
397 false, 397 false,
398 false); 398 false);
399 } 399 }
400 400
401 const Extension* ExtensionBrowserTest::InstallExtensionFromWebstore( 401 const Extension* ExtensionBrowserTest::InstallExtensionFromWebstore(
402 const base::FilePath& path, 402 const base::FilePath& path,
403 int expected_change) { 403 int expected_change) {
404 return InstallOrUpdateExtension(std::string(), 404 return InstallOrUpdateExtension(
405 path, 405 std::string(), path, INSTALL_UI_TYPE_AUTO_CONFIRM, expected_change,
406 INSTALL_UI_TYPE_NONE, 406 Manifest::INTERNAL, browser(), Extension::FROM_WEBSTORE, true, false);
407 expected_change,
408 Manifest::INTERNAL,
409 browser(),
410 Extension::FROM_WEBSTORE,
411 true,
412 false);
413 } 407 }
414 408
415 const Extension* ExtensionBrowserTest::InstallOrUpdateExtension( 409 const Extension* ExtensionBrowserTest::InstallOrUpdateExtension(
416 const std::string& id, 410 const std::string& id,
417 const base::FilePath& path, 411 const base::FilePath& path,
418 InstallUIType ui_type, 412 InstallUIType ui_type,
419 int expected_change) { 413 int expected_change) {
420 return InstallOrUpdateExtension(id, 414 return InstallOrUpdateExtension(id,
421 path, 415 path,
422 ui_type, 416 ui_type,
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
660 return extensions::browsertest_util::ExecuteScriptInBackgroundPage( 654 return extensions::browsertest_util::ExecuteScriptInBackgroundPage(
661 profile(), extension_id, script); 655 profile(), extension_id, script);
662 } 656 }
663 657
664 bool ExtensionBrowserTest::ExecuteScriptInBackgroundPageNoWait( 658 bool ExtensionBrowserTest::ExecuteScriptInBackgroundPageNoWait(
665 const std::string& extension_id, 659 const std::string& extension_id,
666 const std::string& script) { 660 const std::string& script) {
667 return extensions::browsertest_util::ExecuteScriptInBackgroundPageNoWait( 661 return extensions::browsertest_util::ExecuteScriptInBackgroundPageNoWait(
668 profile(), extension_id, script); 662 profile(), extension_id, script);
669 } 663 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/content_verifier_browsertest.cc ('k') | chrome/browser/extensions/extension_system_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698