| Index: components/webdata/common/web_database_table.h
|
| diff --git a/components/webdata/common/web_database_table.h b/components/webdata/common/web_database_table.h
|
| index b920ff61f163f4fdd02cc270ef66adbb0bd7b717..d931c870051eab0c535a095b4793ab0c24f84991 100644
|
| --- a/components/webdata/common/web_database_table.h
|
| +++ b/components/webdata/common/web_database_table.h
|
| @@ -29,11 +29,12 @@ class WEBDATA_EXPORT WebDatabaseTable {
|
| // Retrieves the TypeKey for the concrete subtype.
|
| virtual TypeKey GetTypeKey() const = 0;
|
|
|
| - // Attempts to initialize the table and returns true if successful.
|
| - //
|
| - // The base class stores the members passed and always return true;
|
| - // subclasses may perform other initialization as needed.
|
| - virtual bool Init(sql::Connection* db, sql::MetaTable* meta_table);
|
| + // Stores the passed members as instance variables.
|
| + void Init(sql::Connection* db, sql::MetaTable* meta_table);
|
| +
|
| + // Create all of the expected SQL tables if they do not already exist.
|
| + // Returns true on success, false on failure.
|
| + virtual bool CreateTablesIfNecessary() = 0;
|
|
|
| // In order to encourage developers to think about sync when adding or
|
| // or altering new tables, this method must be implemented. Please get in
|
|
|