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_installer.cc

Issue 575113002: Move Webstore URL concepts to //extensions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ENABLE_EXTENSIONS guard in core chrome code Created 6 years, 3 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/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 "base/version.h" 8 #include "base/version.h"
9 #include "chrome/browser/extensions/crx_installer.h" 9 #include "chrome/browser/extensions/crx_installer.h"
10 #include "chrome/browser/extensions/extension_install_prompt.h" 10 #include "chrome/browser/extensions/extension_install_prompt.h"
11 #include "chrome/browser/extensions/extension_install_ui.h" 11 #include "chrome/browser/extensions/extension_install_ui.h"
12 #include "chrome/browser/extensions/extension_install_ui_util.h" 12 #include "chrome/browser/extensions/extension_install_ui_util.h"
13 #include "chrome/browser/extensions/extension_service.h" 13 #include "chrome/browser/extensions/extension_service.h"
14 #include "chrome/browser/extensions/install_tracker.h" 14 #include "chrome/browser/extensions/install_tracker.h"
15 #include "chrome/browser/extensions/webstore_data_fetcher.h" 15 #include "chrome/browser/extensions/webstore_data_fetcher.h"
16 #include "chrome/browser/profiles/profile.h" 16 #include "chrome/browser/profiles/profile.h"
17 #include "components/crx_file/id_util.h" 17 #include "components/crx_file/id_util.h"
18 #include "content/public/browser/web_contents.h" 18 #include "content/public/browser/web_contents.h"
19 #include "extensions/browser/extension_prefs.h" 19 #include "extensions/browser/extension_prefs.h"
20 #include "extensions/browser/extension_registry.h" 20 #include "extensions/browser/extension_registry.h"
21 #include "extensions/browser/extension_system.h" 21 #include "extensions/browser/extension_system.h"
22 #include "extensions/browser/extension_util.h" 22 #include "extensions/browser/extension_util.h"
23 #include "extensions/common/extension.h" 23 #include "extensions/common/extension.h"
24 #include "extensions/common/extension_urls.h"
24 #include "url/gurl.h" 25 #include "url/gurl.h"
25 26
26 using content::WebContents; 27 using content::WebContents;
27 28
28 namespace extensions { 29 namespace extensions {
29 30
30 const char kInvalidWebstoreItemId[] = "Invalid Chrome Web Store item ID"; 31 const char kInvalidWebstoreItemId[] = "Invalid Chrome Web Store item ID";
31 const char kWebstoreRequestError[] = 32 const char kWebstoreRequestError[] =
32 "Could not fetch data from the Chrome Web Store"; 33 "Could not fetch data from the Chrome Web Store";
33 const char kInvalidWebstoreResponseError[] = "Invalid Chrome Web Store reponse"; 34 const char kInvalidWebstoreResponseError[] = "Invalid Chrome Web Store reponse";
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after
437 void WebstoreStandaloneInstaller::OnWebStoreDataFetcherDone() { 438 void WebstoreStandaloneInstaller::OnWebStoreDataFetcherDone() {
438 // An instance of this class is passed in as a delegate for the 439 // An instance of this class is passed in as a delegate for the
439 // WebstoreInstallHelper, ExtensionInstallPrompt and WebstoreInstaller, and 440 // WebstoreInstallHelper, ExtensionInstallPrompt and WebstoreInstaller, and
440 // therefore needs to remain alive until they are done. Clear the webstore 441 // therefore needs to remain alive until they are done. Clear the webstore
441 // data fetcher to avoid calling Release in AbortInstall while any of these 442 // data fetcher to avoid calling Release in AbortInstall while any of these
442 // operations are in progress. 443 // operations are in progress.
443 webstore_data_fetcher_.reset(); 444 webstore_data_fetcher_.reset();
444 } 445 }
445 446
446 } // namespace extensions 447 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/webstore_installer.cc ('k') | chrome/browser/prerender/prerender_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698