#include "extensions/common/constants.h"
#include "url/gurl.h"
-using base::string16;
using base::DictionaryValue;
namespace extensions {
const std::string& extension_id,
bool from_incognito,
logging::LogSeverity level,
- const string16& source,
- const string16& message)
+ const base::string16& source,
+ const base::string16& message)
: type_(type),
extension_id_(extension_id),
from_incognito_(from_incognito),
const char ManifestError::kManifestSpecificKey[] = "manifestSpecific";
ManifestError::ManifestError(const std::string& extension_id,
- const string16& message,
- const string16& manifest_key,
- const string16& manifest_specific)
+ const base::string16& message,
+ const base::string16& manifest_key,
+ const base::string16& manifest_specific)
: ExtensionError(ExtensionError::MANIFEST_ERROR,
extension_id,
false, // extensions can't be installed while incognito.
RuntimeError::RuntimeError(const std::string& extension_id,
bool from_incognito,
- const string16& source,
- const string16& message,
+ const base::string16& source,
+ const base::string16& message,
const StackTrace& stack_trace,
const GURL& context_url,
logging::LogSeverity level,
}
scoped_ptr<DictionaryValue> RuntimeError::ToValue() const {
+ // The items which are to be written into value are also described in
+ // chrome/browser/resources/extensions/extension_error_overlay.js in @typedef
+ // for RuntimeError and StackTrace. Please update them whenever you add or
+ // remove any keys here.
scoped_ptr<DictionaryValue> value = ExtensionError::ToValue();
value->SetString(kContextUrlKey, context_url_.spec());
value->SetInteger(kRenderViewIdKey, render_view_id_);