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

Side by Side Diff: chrome/browser/ui/panels/base_panel_browser_test.cc

Issue 8417012: Refactor loading out of ExtensionService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/ui/panels/base_panel_browser_test.h" 5 #include "chrome/browser/ui/panels/base_panel_browser_test.h"
6 6
7 #include "chrome/browser/ui/browser_list.h" 7 #include "chrome/browser/ui/browser_list.h"
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/mac/scoped_nsautorelease_pool.h" 10 #include "base/mac/scoped_nsautorelease_pool.h"
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 scoped_ptr<DictionaryValue> input_value(extra_value.DeepCopy()); 320 scoped_ptr<DictionaryValue> input_value(extra_value.DeepCopy());
321 input_value->SetString(extension_manifest_keys::kVersion, "1.0.0.0"); 321 input_value->SetString(extension_manifest_keys::kVersion, "1.0.0.0");
322 input_value->SetString(extension_manifest_keys::kName, "Sample Extension"); 322 input_value->SetString(extension_manifest_keys::kName, "Sample Extension");
323 323
324 std::string error; 324 std::string error;
325 scoped_refptr<Extension> extension = Extension::Create( 325 scoped_refptr<Extension> extension = Extension::Create(
326 full_path, location, *input_value, 326 full_path, location, *input_value,
327 Extension::STRICT_ERROR_CHECKS, &error); 327 Extension::STRICT_ERROR_CHECKS, &error);
328 EXPECT_TRUE(extension.get()); 328 EXPECT_TRUE(extension.get());
329 EXPECT_STREQ("", error.c_str()); 329 EXPECT_STREQ("", error.c_str());
330 browser()->GetProfile()->GetExtensionService()->OnLoadSingleExtension( 330 browser()->GetProfile()->GetExtensionService()->
331 extension.get(), false); 331 OnExtensionInstalled(extension.get(), false, -1);
332 return extension; 332 return extension;
333 } 333 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698