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

Unified Diff: chrome/browser/extensions/bundle_installer.h

Issue 9456019: Add GTK interface for installing bundles of extensions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/bundle_installer.h
diff --git a/chrome/browser/extensions/bundle_installer.h b/chrome/browser/extensions/bundle_installer.h
index dec681d946f76e3068ccc2664cd6e92998234ddc..1818041e29a178becfed8b5f954aa214056b87bd 100644
--- a/chrome/browser/extensions/bundle_installer.h
+++ b/chrome/browser/extensions/bundle_installer.h
@@ -10,6 +10,7 @@
#include <vector>
#include "base/memory/linked_ptr.h"
+#include "base/string16.h"
#include "chrome/browser/extensions/extension_install_ui.h"
#include "chrome/browser/extensions/webstore_installer.h"
#include "chrome/browser/extensions/webstore_install_helper.h"
@@ -96,6 +97,15 @@ class BundleInstaller : public WebstoreInstallHelper::Delegate,
Browser* browser,
Delegate* delegate);
+ // We change the headings in the install prompt and installed bubble depending
+ // on whether the bundle contains apps, extensions or both. This method gets
+ // the correct heading for the items in the specified |state|, or an empty
+ // string if no items are in the |state|.
+ // STATE_PENDING - install prompt
+ // STATE_INSTALLED - installed bubble successful installs list
+ // STATE_FAILED - installed bubble failed installs list
+ string16 GetHeadingTextFor(Item::State state) const;
+
private:
friend class base::RefCountedThreadSafe<BundleInstaller>;

Powered by Google App Engine
This is Rietveld 408576698