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

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: finally 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
« no previous file with comments | « chrome/browser/ui/browser.cc ('k') | chrome/browser/ui/webui/ntp/app_launcher_handler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 scoped_ptr<DictionaryValue> input_value(extra_value.DeepCopy()); 323 scoped_ptr<DictionaryValue> input_value(extra_value.DeepCopy());
324 input_value->SetString(extension_manifest_keys::kVersion, "1.0.0.0"); 324 input_value->SetString(extension_manifest_keys::kVersion, "1.0.0.0");
325 input_value->SetString(extension_manifest_keys::kName, "Sample Extension"); 325 input_value->SetString(extension_manifest_keys::kName, "Sample Extension");
326 326
327 std::string error; 327 std::string error;
328 scoped_refptr<Extension> extension = Extension::Create( 328 scoped_refptr<Extension> extension = Extension::Create(
329 full_path, location, *input_value, 329 full_path, location, *input_value,
330 Extension::STRICT_ERROR_CHECKS, &error); 330 Extension::STRICT_ERROR_CHECKS, &error);
331 EXPECT_TRUE(extension.get()); 331 EXPECT_TRUE(extension.get());
332 EXPECT_STREQ("", error.c_str()); 332 EXPECT_STREQ("", error.c_str());
333 browser()->GetProfile()->GetExtensionService()->OnLoadSingleExtension( 333 browser()->GetProfile()->GetExtensionService()->
334 extension.get(), false); 334 OnExtensionInstalled(extension.get(), false, -1);
335 return extension; 335 return extension;
336 } 336 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser.cc ('k') | chrome/browser/ui/webui/ntp/app_launcher_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698