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

Unified Diff: chrome/browser/component_updater/pepper_flash_component_installer.cc

Issue 1301883002: Revert of base: Remove using:: declaration from version.h header. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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/component_updater/pepper_flash_component_installer.cc
diff --git a/chrome/browser/component_updater/pepper_flash_component_installer.cc b/chrome/browser/component_updater/pepper_flash_component_installer.cc
index ca6b1fd829ab49f5a489c63b4acc14317c3476aa..9c46ecfd68fad81f1fd9fe34094fefc09ded5812 100644
--- a/chrome/browser/component_updater/pepper_flash_component_installer.cc
+++ b/chrome/browser/component_updater/pepper_flash_component_installer.cc
@@ -65,7 +65,7 @@
// |latest_version| returns the corresponding version number. |older_dirs|
// returns directories of all older versions.
bool GetPepperFlashDirectory(base::FilePath* latest_dir,
- base::Version* latest_version,
+ Version* latest_version,
std::vector<base::FilePath>* older_dirs) {
DCHECK_CURRENTLY_ON(BrowserThread::FILE);
base::FilePath base_dir;
@@ -79,7 +79,7 @@
base_dir, false, base::FileEnumerator::DIRECTORIES);
for (base::FilePath path = file_enumerator.Next(); !path.value().empty();
path = file_enumerator.Next()) {
- base::Version version(path.BaseName().MaybeAsASCII());
+ Version version(path.BaseName().MaybeAsASCII());
if (!version.IsValid())
continue;
if (found) {
@@ -102,7 +102,7 @@
#if !defined(OS_LINUX) || defined(GOOGLE_CHROME_BUILD)
bool MakePepperFlashPluginInfo(const base::FilePath& flash_path,
- const base::Version& flash_version,
+ const Version& flash_version,
bool out_of_process,
content::PepperPluginInfo* plugin_info) {
if (!flash_version.IsValid())
@@ -146,7 +146,7 @@
}
void RegisterPepperFlashWithChrome(const base::FilePath& path,
- const base::Version& version) {
+ const Version& version) {
DCHECK_CURRENTLY_ON(BrowserThread::UI);
content::PepperPluginInfo plugin_info;
if (!MakePepperFlashPluginInfo(path, version, true, &plugin_info))
@@ -162,7 +162,7 @@
continue;
// Do it only if the version we're trying to register is newer.
- base::Version registered_version(base::UTF16ToUTF8(it->version));
+ Version registered_version(base::UTF16ToUTF8(it->version));
if (registered_version.IsValid() &&
version.CompareTo(registered_version) <= 0) {
return;
@@ -183,7 +183,7 @@
class PepperFlashComponentInstaller : public update_client::CrxInstaller {
public:
- explicit PepperFlashComponentInstaller(const base::Version& version);
+ explicit PepperFlashComponentInstaller(const Version& version);
// ComponentInstaller implementation:
void OnUpdateError(int error) override;
@@ -199,11 +199,11 @@
private:
~PepperFlashComponentInstaller() override {}
- base::Version current_version_;
+ Version current_version_;
};
PepperFlashComponentInstaller::PepperFlashComponentInstaller(
- const base::Version& version)
+ const Version& version)
: current_version_(version) {
DCHECK(version.IsValid());
}
@@ -215,7 +215,7 @@
bool PepperFlashComponentInstaller::Install(
const base::DictionaryValue& manifest,
const base::FilePath& unpack_path) {
- base::Version version;
+ Version version;
if (!chrome::CheckPepperFlashManifest(manifest, &version))
return false;
if (current_version_.CompareTo(version) > 0)
@@ -279,7 +279,7 @@
#if defined(GOOGLE_CHROME_BUILD)
void FinishPepperFlashUpdateRegistration(ComponentUpdateService* cus,
- const base::Version& version) {
+ const Version& version) {
DCHECK_CURRENTLY_ON(BrowserThread::UI);
update_client::CrxComponent pepflash;
pepflash.name = "pepper_flash";
@@ -305,7 +305,7 @@
}
}
- base::Version version(kNullVersion);
+ Version version(kNullVersion);
std::vector<base::FilePath> older_dirs;
if (GetPepperFlashDirectory(&path, &version, &older_dirs)) {
path = path.Append(chrome::kPepperFlashPluginFilename);
@@ -315,7 +315,7 @@
FROM_HERE,
base::Bind(&RegisterPepperFlashWithChrome, path, version));
} else {
- version = base::Version(kNullVersion);
+ version = Version(kNullVersion);
}
}
@@ -324,7 +324,7 @@
// than the version of the component, or the component has never been updated,
// then set the bundled version as the current version.
if (version.CompareTo(Version(FLAPPER_VERSION_STRING)) < 0)
- version = base::Version(FLAPPER_VERSION_STRING);
+ version = Version(FLAPPER_VERSION_STRING);
#endif
BrowserThread::PostTask(

Powered by Google App Engine
This is Rietveld 408576698