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

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

Issue 147923005: Split ExtensionSystem interface from ExtensionSystemImpl implementation, part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: re^3base Created 6 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 "chrome/browser/extensions/webstore_standalone_installer.h" 5 #include "chrome/browser/extensions/webstore_standalone_installer.h"
6 6
7 #include "base/values.h" 7 #include "base/values.h"
8 #include "chrome/browser/extensions/crx_installer.h" 8 #include "chrome/browser/extensions/crx_installer.h"
9 #include "chrome/browser/extensions/extension_install_prompt.h" 9 #include "chrome/browser/extensions/extension_install_prompt.h"
10 #include "chrome/browser/extensions/extension_install_ui.h" 10 #include "chrome/browser/extensions/extension_install_ui.h"
11 #include "chrome/browser/extensions/extension_service.h" 11 #include "chrome/browser/extensions/extension_service.h"
12 #include "chrome/browser/extensions/extension_system.h"
13 #include "chrome/browser/extensions/webstore_data_fetcher.h" 12 #include "chrome/browser/extensions/webstore_data_fetcher.h"
14 #include "chrome/browser/profiles/profile.h" 13 #include "chrome/browser/profiles/profile.h"
15 #include "content/public/browser/web_contents.h" 14 #include "content/public/browser/web_contents.h"
16 #include "extensions/browser/extension_prefs.h" 15 #include "extensions/browser/extension_prefs.h"
16 #include "extensions/browser/extension_system.h"
17 #include "extensions/common/extension.h" 17 #include "extensions/common/extension.h"
18 #include "url/gurl.h" 18 #include "url/gurl.h"
19 19
20 using content::WebContents; 20 using content::WebContents;
21 21
22 namespace extensions { 22 namespace extensions {
23 23
24 const char kInvalidWebstoreItemId[] = "Invalid Chrome Web Store item ID"; 24 const char kInvalidWebstoreItemId[] = "Invalid Chrome Web Store item ID";
25 const char kWebstoreRequestError[] = 25 const char kWebstoreRequestError[] =
26 "Could not fetch data from the Chrome Web Store"; 26 "Could not fetch data from the Chrome Web Store";
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 // Balanced in InstallUIAbort or indirectly in InstallUIProceed via 321 // Balanced in InstallUIAbort or indirectly in InstallUIProceed via
322 // OnExtensionInstallSuccess or OnExtensionInstallFailure. 322 // OnExtensionInstallSuccess or OnExtensionInstallFailure.
323 AddRef(); 323 AddRef();
324 324
325 install_ui_ = CreateInstallUI(); 325 install_ui_ = CreateInstallUI();
326 install_ui_->ConfirmStandaloneInstall( 326 install_ui_->ConfirmStandaloneInstall(
327 this, localized_extension_for_display_.get(), &icon_, *install_prompt_); 327 this, localized_extension_for_display_.get(), &icon_, *install_prompt_);
328 } 328 }
329 329
330 } // namespace extensions 330 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/webstore_installer.cc ('k') | chrome/browser/extensions/webstore_startup_installer_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698