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

Unified Diff: app/os_exchange_data_provider_gtk.cc

Issue 199025: Fix some gcc 4.4 issues when compiling with toolkit_views. (Closed)
Patch Set: Remove CreateFindBar, use COMPILER_GCC and add comments. Created 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/views/dialog_stubs_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: app/os_exchange_data_provider_gtk.cc
diff --git a/app/os_exchange_data_provider_gtk.cc b/app/os_exchange_data_provider_gtk.cc
index f432c7c5cbd54939274514c2c03ecdb7094e5faa..5b32907095e819e7bc2f4879cbc5eab8a2db6911 100644
--- a/app/os_exchange_data_provider_gtk.cc
+++ b/app/os_exchange_data_provider_gtk.cc
@@ -164,7 +164,7 @@ void OSExchangeDataProviderGtk::SetHtml(const std::wstring& html,
}
bool OSExchangeDataProviderGtk::GetString(std::wstring* data) const {
- if (formats_ & OSExchangeData::STRING == 0)
+ if ((formats_ & OSExchangeData::STRING) == 0)
return false;
*data = UTF16ToWideHack(string_);
return true;
@@ -172,7 +172,7 @@ bool OSExchangeDataProviderGtk::GetString(std::wstring* data) const {
bool OSExchangeDataProviderGtk::GetURLAndTitle(GURL* url,
std::wstring* title) const {
- if (formats_ & OSExchangeData::URL == 0)
+ if ((formats_ & OSExchangeData::URL) == 0)
return false;
if (!url_.is_valid())
return false;
@@ -183,7 +183,7 @@ bool OSExchangeDataProviderGtk::GetURLAndTitle(GURL* url,
}
bool OSExchangeDataProviderGtk::GetFilename(std::wstring* full_path) const {
- if (formats_ & OSExchangeData::FILE_NAME == 0)
+ if ((formats_ & OSExchangeData::FILE_NAME) == 0)
return false;
*full_path = UTF16ToWideHack(filename_);
return true;
@@ -202,7 +202,7 @@ bool OSExchangeDataProviderGtk::GetPickledData(GdkAtom format,
bool OSExchangeDataProviderGtk::GetFileContents(
std::wstring* filename,
std::string* file_contents) const {
- if (formats_ & OSExchangeData::FILE_CONTENTS == 0)
+ if ((formats_ & OSExchangeData::FILE_CONTENTS) == 0)
return false;
*filename = UTF16ToWideHack(filename_);
*file_contents = file_contents_;
@@ -211,7 +211,7 @@ bool OSExchangeDataProviderGtk::GetFileContents(
bool OSExchangeDataProviderGtk::GetHtml(std::wstring* html,
GURL* base_url) const {
- if (formats_ & OSExchangeData::HTML == 0)
+ if ((formats_ & OSExchangeData::HTML) == 0)
return false;
*html = UTF16ToWideHack(filename_);
*base_url = base_url_;
« no previous file with comments | « no previous file | chrome/browser/views/dialog_stubs_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698